Run multiple demoapppython apps with nginx and uwsgi

You can use this config if you would like to run multiple python app,s. This config is to run an app under domain.com and domain.com/user

server {
listen 80;
server_name domain.com.com;
charset utf-8;
client_max_body_size 75M;

location / { try_files $uri @hello; }
location @hello {
include uwsgi_params;
uwsgi_pass unix:/var/www/applocation/demoapp_uwsgi.sock;
}

location /folder/ {
include uwsgi_params;
uwsgi_param SCRIPT_NAME /user;
uwsgi_modifier1 30;
uwsgi_pass unix:/var/www/applocation/userapp_uwsgi.sock;
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *