url changed in proxy_pass

Igor Sysoev is at rambler-co.ru
Fri Feb 1 17:44:49 MSK 2008

On Fri, Feb 01, 2008 at 09:34:54AM -0500, John Quaglieri wrote:

> I have nginx installed on port 80 and apache is installed on port 81. I 
> proxy php to apache and have nginx handle all the static and image content.
> On my config I have an if statment similar to this:
> if (!-f $request_filename) {
>                 break;
>                 proxy_pass  http://domain.com:81;
>             }
> I've noticed that if this is used the url gets rewritten to 
> http://domain.com:81/file
> Is there a way to have it not add in :81 into the url?

Where do you see these URLs: inside HTML or redirects ?

Igor Sysoev

More information about the nginx mailing list