Q
Q
Quorev2016-04-02 15:39:55
Nginx
Quorev, 2016-04-02 15:39:55

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;

    }

upd: There is no subdomain, and if on a different port, then the static is not loaded .....

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question