Answer the question
In order to leave comments, you need to log in
Nested location nginx .?
Hello!
There is a site, the current config is valid for it:
location / {
try_files $uri $uri/ /index.php?$args;
rewrite "/ajax" /index.php?a=ajax last;
rewrite "/min" /index.php?a=min last;
rewrite "/login" /index.php?a=login last;
rewrite "/register" /index.php?a=register last;
rewrite "/logout" /index.php?a=logout last;
rewrite "/lostpass" /index.php?a=lostpass last;
}
location /news {
rewrite ^/news/([0-9]+)(/?)+$ /index.php?a=news&p=$1 last;
}
location /page {
rewrite ^/page/(.*)$ /index.php?a=page&p=$1 last;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question