Answer the question
In order to leave comments, you need to log in
Copy of django front with nginx?
Now there is a working project.
I need to redo the fronted a little, I want to raise the test version.
I copied the project folder and set up uwsgi.
The main project opens at:
my-ip.ru
What directive should be specified in etc/nginx/sites-available/conf so that the copy and the entire tree structure are opened when
visiting http:/my-ip.ru/ dev
And is this possible at all do?
I tried something like this, but I get a redirect to the main project
location /dev {
rewrite /dev/(.+) /$1 break;
include uwsgi_params;
uwsgi_pass 127.0.0.1:9010;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
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