Rewrite or proxy_pass to internal ip ?

Francis Daly francis at
Mon Oct 29 09:51:42 UTC 2012

On Mon, Oct 29, 2012 at 05:40:39AM -0400, hristoc wrote:

Hi there,

>      location /admin {
>         proxy_pass;
>         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 ?

See the part that starts "A request URI is passed to the server as follows:"

The short version is:


Francis Daly        francis at

More information about the nginx mailing list