mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
upstream django_server_random25647.example.org {
|
|
server unix:/srv/http/random11461/live/website.sock;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name random25647.example.org www.random25647.example.org random10963.example.org www.random10963.example.org;
|
|
|
|
if ($host != 'random25647.example.org') {
|
|
rewrite ^/(.*)$ http://random25647.example.org/$1 permanent;
|
|
}
|
|
|
|
location /media/ {
|
|
alias /srv/http/random11461/live/dynamic/public/;
|
|
expires 7d;
|
|
include upload_folder_security_params;
|
|
}
|
|
location /static/ {
|
|
alias /srv/http/random11461/live/static_collected/;
|
|
expires 7d;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://django_server_random25647.example.org;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
access_log /var/log/nginx/random11461/live/access.log combined_plus;
|
|
error_log /var/log/nginx/random11461/live/error.log;
|
|
}
|