K
K
Konstantin Rudenkov2014-06-03 15:00:47
Nginx
Konstantin Rudenkov, 2014-06-03 15:00:47

Where to look in Spree to fix the Login link?

Hello. I decided to play around with spree, launched it and got an incomprehensible thing. When you click "login", it redirects to a dead link like $nginx_upstream_name/login ( http://spree_mystore_thin/login). The question is why and where to look for a jamb?
Thin + nginx startup scheme. thin is wrapped in 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;
  }
  
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question