I am trying to proxy_pass in nginx with the following configuration:
location /abc_service
{
proxy_pass http://127.0.0.1:3030;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
But I am getting /abc_service as prefix in my application(rails application running on port 3030). For Ex: I am getting '/abc_service/users/sign_in' which should be '/users/sign_in'
I want to remove this prefix.
It was working fine in apache with :
ProxyPass /abc_service http://localhost:3030 timeout=300 KeepAlive=On
ProxyPassReverse /abc_service/ http://localhost:3030/