Всем привет. Решил поиграться с spree, запустил и получил непонятную вещь. При нажатии «login» редиректит на мертвую ссылку вида $nginx_upstream_name/login (
http://spree_mystore_thin/login). Вопрос - почему и где искать косяк?
Схема запуска thin+nginx. thin обернут в wrapper rvm.
thin config:
---
user: www-data
group: www-data
pid: /tmp/spree_mystore.pid
timeout: 30
wait: 30
log: /var/log/thin/spree_mystore.log
max_conns: 1024
require: []
environment: production
max_persistent_conns: 512
servers: 2
threaded: true
no-epoll: false
daemonize: true
socket: /tmp/spree_mystore.sock
chdir: /opt/mystore
tag: spree_mystore
nginx:
upstream spree_mystore_thin {
server unix:/tmp/spree_mystore.0.sock;
server unix:/tmp/spree_mystore.1.sock;
}
server {
server_name mystore.myserver.tld;
root /opt/mystore/public;
access_log /var/log/nginx/spree_mystore/access.log;
error_log /var/log/nginx/spree_mystore/error.log;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
try_files $uri @ruby;
}
location @ruby {
proxy_pass http://spree_mystore_thin;
}
# location ^~ /assets/ {
# gzip_static on;
# expires max;
# add_header Cache-Control public;
# }
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}