Nginx proxy server

goga nginx-forum at
Mon Aug 3 03:54:45 UTC 2015

Hi everyone.
I need to create a mirror site. And I use the server Nginx.
I was able to configure the server. And everything works fine.
But I have a problem when trying to login on my site. If a password is good
I redirect to the original site ( If the password is bad I
stay on my website. And I do not know how to fix it.
I need professional help.

I am using these configurations:
location / {
resolver ;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Location $host;
proxy_cookie_path / /mirorr/;
proxy_set_header Accept-Encoding "";
proxy_set_header Referer;
proxy_set_header Cookie $http_cookie;

I think that I return value Location "" to "response header".
But how do I change it, I do not know. Or I'm wrong.

Posted at Nginx Forum:,260716,260716#msg-260716

More information about the nginx mailing list