Match any location except particular one

mennanov nginx-forum at nginx.us
Wed Nov 23 16:26:02 UTC 2011


Igor Sysoev Wrote:
-------------------------------------------------------
> 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Is there any way to use relative path in alias?
It does not look comfortable to write the whole absolute path, it would
be rather better if it is current root + path

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



More information about the nginx mailing list