Answer the question
In order to leave comments, you need to log in
How to specify the path to a new directory?
Such a problem, I want to make a transition to the directory with the opening of index.html ( dev.ru/temp/ ) in it - the path /var/www/b/c/
I write like this
server {
server_name dev.ru;
listen 80 default_server;
root /var/www/;
index index.php index.html index.hml;
location / {
try_files $uri $uri/ /index.php?q=$uri & $args;
}
location /temp/ {
alias /var/www/b/c/;
}
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