mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
35 lines
857 B
Plaintext
35 lines
857 B
Plaintext
upstream django_server_random25713.example.org {
|
|
server unix:/srv/http/random24922/live/website.sock;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name random25713.example.org;
|
|
|
|
location /media/ {
|
|
alias /srv/http/random24922/live/dynamic/public/;
|
|
expires 7d;
|
|
}
|
|
location /static/ {
|
|
alias /srv/http/random24922/live/static_collected/;
|
|
expires 7d;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://django_server_random25713.example.org;
|
|
include /etc/nginx/proxy_params;
|
|
|
|
satisfy any;
|
|
include /etc/nginx/allow_ytec_ips_params;
|
|
deny all;
|
|
}
|
|
|
|
access_log /var/log/nginx/random24922/live/access.log;
|
|
error_log /var/log/nginx/random24922/live/error.log;
|
|
}
|
|
|
|
server {
|
|
server_name www.random25713.example.org;
|
|
return 301 http://random25713.example.org$request_uri;
|
|
}
|