Answer the question
In order to leave comments, you need to log in
How to compose a regular expression in location nginx?
There is a url like this:
/{locale}/seo/text.txt
For example:
site.com/en/seo/text.txt
site.com/ru/seo/text.txt
site.com/fr/seo/text.txt
...
I need to intercept location and change the root path, like this:
location /ru/seo {
alias /client/www/public/seo;
}
location ~ \/([a-z]{2})/seo$ {
alias /client/www/public/seo;
}
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