server {
listen 80;
server_name домен.ru;
location / {
uwsgi_pass django:2021;
include /container/tnd/docker/uwsgi_params;
}
location ~ ^/(static|media) {
root /container/tnd/;
gzip_static on;
gzip_types text/plain text/xml text/css text/comma-separated-values
text/javascript application/x-javascript application/atom+xml;
access_log off;
expires 30d;
}
}
server {
listen 80;
server_name subdomain.example.org;
proxy_pass http:localhost:8000;
}
server {
listen 80;
server_name example.org;
proxy_pass http:localhost:8001;
}