/location and or IF statment
Michael Shadle
mike503 at gmail.com
Thu Jul 23 04:35:36 MSD 2009
location doesn't work on hosts, only on paths/etc.
On Wed, Jul 22, 2009 at 5:26 PM, vburshteyn<nginx-forum at nginx.us> wrote:
> 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