Converting subdomain to path component without redirect ?
hems.inlet at gmail.com
Mon Apr 29 21:02:35 UTC 2013
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
mydomain.it/PATH should return ~> mydomain.com/it/PATH
(www\.)?mydomain\.(it|jp|es|de) to return my
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 ):
This is my last unsuccessful attempt: http://pastebin.com/bZZA30zC
any input is highly appreciated
thanks a lot,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx