Welcome! Log In Create A New Profile

Advanced

/location and or IF statment

July 22, 2009 08:26PM
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?
Subject Author Posted

/location and or IF statment

vburshteyn July 22, 2009 08:26PM

Re: /location and or IF statment

mike July 22, 2009 08:35PM

Re: /location and or IF statment

vburshteyn July 22, 2009 09:05PM

Re: /location and or IF statment

mike July 22, 2009 09:19PM

Re: /location and or IF statment

vburshteyn July 22, 2009 09:55PM

Re: /location and or IF statment

Joshua Zhu July 23, 2009 03:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready