July 22, 2009 08:35PM
location doesn't work on hosts, only on paths/etc.

On Wed, Jul 22, 2009 at 5:26 PM, vburshteyn<nginx-forum@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
>
>
>
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: 238
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