Welcome! Log In Create A New Profile

Advanced

Converting subdomain to path component without redirect ?

henrique matias
April 29, 2013 05:04PM
Hello guys,

Am having trouble setting up my nginx.config to transparently proxy the
subdomains and domains to the same app, but with different "path
components" appended to the $uri

example:
mydomain.it/PATH should return ~> mydomain.com/it/PATH

using regexp:
(www\.)?mydomain\.(it|jp|es|de) to return my
http://app_server/$2/$request_uri

My idea is to proxy the "localised server_name" to the "default
server_name" without letting the user know ( no browser redirect ).

This is my "working" nginx.config ( without the rukes ):
http://pastebin.com/v9pcVR4e

This is my last unsuccessful attempt: http://pastebin.com/bZZA30zC

any input is highly appreciated

thanks a lot,
peace
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Converting subdomain to path component without redirect ?

henrique matias April 29, 2013 05:04PM

Re: Converting subdomain to path component without redirect ?

henrique matias April 30, 2013 07:10AM

Re: Converting subdomain to path component without redirect ?

Francis Daly May 04, 2013 05:50PM

Re: Converting subdomain to path component without redirect ?

henrique matias May 04, 2013 09:24PM

Re: Converting subdomain to path component without redirect ?

henrique matias May 04, 2013 09:40PM

Re: Converting subdomain to path component without redirect ?

Francis Daly May 05, 2013 04:18AM

Re: Converting subdomain to path component without redirect ?

henrique matias May 05, 2013 07:16PM

Re: Converting subdomain to path component without redirect ?

GreenGecko May 05, 2013 07:26PM

Re: Converting subdomain to path component without redirect ?

henrique matias May 06, 2013 11:36AM

Re: Converting subdomain to path component without redirect ?

Francis Daly May 05, 2013 04:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 282
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