First go to environment.rb
ENV['RAILS_RELATIVE_URL_ROOT'] = "/nix/"
Second config.ru
map '/nix/' do
run App::Application
end
And next nginx.conf
location /nix/ {
proxy_pass http://example:7458/nix/;
proxy_set_header Host $host;
}
Type http://example:7456/nix/sign_in
, and you did'n get redirect to another page, when click submit button.