Answer the question
In order to leave comments, you need to log in
How to set up nginx redirects for frontend and backend on the same domain (Yii) ?
Hello.
I am writing a website in Yii2.
I am using a server with nginx.
There is the following directory structure:
backend
themes
web
index.php
frontend
themes
web
index.php
http://mydomain/
http://mydomain/backend
Answer the question
In order to leave comments, you need to log in
root /var/www/frontend/web;
location /backend/ {
root /var/www/backend/web;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question