Welcome! Log In Create A New Profile

Advanced

Re: Proxy subdomain root to a different server url

Vahan Yerkanian
May 12, 2012 08:06AM
Hi Chris,

I was missing $1 in the end of the uri so the rewrite works.
Without it, it was being silently ignored and was creating a redirect loop.

For the mailing list archival purposes, here is what I ended up with:

server {
listen 11.22.33.44:80;
server_name abcd.domain.com;

location / {
rewrite ^(.*)$ /path1/path2/filename$1 break;
proxy_pass http://www.domain.com;
}
server_tokens off;
}


Thanks again,
Vahan


On May 12, 2012, at 2:44 PM, christian.boenning@gmail.com wrote:

> Hi,
>
> I think what you might need to set is 'proxy_redirect'. I'm running a similar setup which works this way.
>
> Regards,
> Chris
>
>
> Sent from BlackBerry® Device
>
> -----Original Message-----
> From: Vahan Yerkanian <vahan@helix.am>
> Sender: nginx-bounces@nginx.orgDate: Sat, 12 May 2012 14:37:32
> To: <nginx@nginx.org>
> Reply-To: nginx@nginx.org
> Subject: Proxy subdomain root to a different server url
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy subdomain root to a different server url

Vahan Yerkanian May 12, 2012 06:38AM

Re: Proxy subdomain root to a different server url

hexa May 12, 2012 06:44AM

Re: Proxy subdomain root to a different server url

Vahan Yerkanian May 12, 2012 08:06AM

Re: Proxy subdomain root to a different server url

Igor Sysoev May 12, 2012 08:26AM

Re: Proxy subdomain root to a different server url

xore May 12, 2012 10:19AM

Re: Proxy subdomain root to a different server url

Vahan Yerkanian May 12, 2012 10:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready