Answer the question
In order to leave comments, you need to log in
How to do nginx location on files in another folder correctly?
There is an address for example: news.site.ru
so that the link news.site.ru/auth/ opens index.php from the folder /var/www/news.site.ru/news/auth/
I have this:
location / {
index /app.php;
}
location /auth/ {
index /news/auth/index.php;
}
location /i/ {
root /data/w3;
}
в моем случае не работает! и с индексом и без
location /auth/ {
root /news;
index index.php
}
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