0
我的代理服務器進入例子:7456/nix/sign_in,但是當我輸入登錄名和密碼,然後點擊提交按鈕服務器不停留在例如:7456/nix/sign_in並重定向到例如:7456 /簽到。Nginx重定向登錄
server {
listen 7456;
charset utf-8;
server_name example;
root /home/support/project_test/public;
passenger_enabled on;
rails_env development;
location /nix/ {
root /home/support/project_nginx/public;
passenger_base_uri /nix/;
passenger_enabled on;
#include proxy_params;
proxy_pass http://10.77.92.167:7458/;
#proxy_set_header X-Accel-Redirect;
proxy_pass_header X-Accel-Redirect;
proxy_set_header Content-Length 0;
proxy_set_header Host $host;
proxy_redirect off;
}
}
server {
listen 7458;
charset utf-8;
server_name example;
root /home/support/project_nginx/public;
passenger_enabled on;
rails_env development;
}
我該如何修復重定向並保持示例:7456/nix/- 在代理服務器上。
我使用Nginx,Passenger和Ruby on Rails。
謝謝,這是作品! – Erihon1890