Rewrite or proxy_pass to internal ip ?

hristoc nginx-forum at
Mon Oct 29 09:40:39 UTC 2012

I want to ask a question about what I to use proxy_pass or rewrite and how
to use them. Basicly I want to redirect connection to internal server for
example if user hit: nginx to redirect all requests

I made this with:

     location /admin {
        proxy_set_header  X-Real-IP  $remote_addr;

But I got Error from admin does not exists. What I to do
to redirect all requsts after /admin on web server to internal server with
admin ?


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

More information about the nginx mailing list