Match any location except particular one
Igor Sysoev
igor at sysoev.ru
Wed Nov 23 16:16:18 UTC 2011
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
More information about the nginx
mailing list