mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
33 lines
816 B
Plaintext
33 lines
816 B
Plaintext
upstream django_server_random4030.example.org {
|
|
server unix:/srv/http/random26975/live/website.sock;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name random4030.example.org;
|
|
|
|
location /media/ {
|
|
alias /srv/http/random26975/live/dynamic/public/;
|
|
expires 7d;
|
|
}
|
|
location /static/ {
|
|
alias /srv/http/random26975/live/static_collected/;
|
|
expires 7d;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://django_server_random4030.example.org;
|
|
include /etc/nginx/django_proxy_params;
|
|
|
|
# You can configure access rules here
|
|
}
|
|
|
|
access_log /var/log/nginx/random26975/live/access.log;
|
|
error_log /var/log/nginx/random26975/live/error.log;
|
|
}
|
|
|
|
server {
|
|
server_name www.random4030.example.org;
|
|
return 301 http://random4030.example.org$request_uri;
|
|
}
|