タイトル通り。
image_url等が http://unicorn/assets/... というURLを返してしまう。
原因
- request.hostに"unicorn"が入ってしまう為
対処
- nginxにproxy_set_headerを追加
app.conf
location / {
+ proxy_set_header Host $http_host;
proxy_pass http://unicorn;
}
Go to list of users who liked
More than 5 years have passed since last update.
タイトル通り。
image_url等が http://unicorn/assets/... というURLを返してしまう。
location / {
+ proxy_set_header Host $http_host;
proxy_pass http://unicorn;
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked