/location and or IF statment

vburshteyn nginx-forum at nginx.us
Thu Jul 23 04:26:30 MSD 2009


hey folks, i got a quick question

basically my issue is this.  the main site is mysite.com

so 

location  / {  works great

but then i have a.mysite.com/boxoffice

when there is /boxoffice the A variable can be a large number of things and each has its own redirect path (damn i love legacy crap)

so when i do something like

location ~ a.mysite.com
or Location ^ a.mystie.com 

it does not see it and just sends me the location /
what am i doing wrong, also what is the most efficient way of doing this, since i have about 50 different redirects?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4346,4346#msg-4346






More information about the nginx mailing list