Welcome! Log In Create A New Profile

Advanced

Re: Match any location except particular one

November 23, 2011 11:18AM
On Wed, Nov 23, 2011 at 10:11:08AM -0500, mennanov wrote:
> Thanks but i've already found a solution in the russian nginx forum.
>
> location ~ ^/cms/(.*)$ {
> try_files /webroot/cms/webroot/$1 /webroot/cms/engine/index.php;
> }
>
> Is what i needed.

location /cms/ {
alias /home/renat/www/glinka/webroot/cms/webroot/;
try_files $uri /webroot/cms/engine/index.php;
}


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Match any location except particular one

mennanov November 23, 2011 08:27AM

Re: Match any location except particular one

Francis Daly November 23, 2011 09:48AM

Re: Match any location except particular one

mennanov November 23, 2011 10:11AM

Re: Match any location except particular one

Igor Sysoev November 23, 2011 11:18AM

Re: Match any location except particular one

mennanov November 23, 2011 11:26AM

Re: Match any location except particular one

Igor Sysoev November 23, 2011 11:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 97
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