31 lines
584 B
Plaintext
31 lines
584 B
Plaintext
upstream ******* {
|
|
server unix:///var/www/*******/deployment/uwsgi_nginx.sock;
|
|
}
|
|
|
|
|
|
server {
|
|
charset utf-8;
|
|
client_max_body_size 75M;
|
|
listen 80;
|
|
server_name ==========;
|
|
|
|
if ($host !~ ^(app\.example\.com|admin\.example\.com)$) {
|
|
return 404;
|
|
}
|
|
|
|
location / {
|
|
uwsgi_pass *******;
|
|
include /var/www/*******/deployment/uwsgi_params;
|
|
}
|
|
|
|
location /static {
|
|
# autoindex on;
|
|
alias /var/www/*******/static/;
|
|
}
|
|
|
|
location /media/ {
|
|
# autoindex on;
|
|
alias /var/www/*******/media/;
|
|
}
|
|
}
|