mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
32 lines
850 B
Plaintext
32 lines
850 B
Plaintext
upstream django_server_random7150.example.org {
|
|
server unix:/srv/http/random550/acceptance/website.sock;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name random7150.example.org;
|
|
|
|
location /media/ {
|
|
alias /srv/http/random550/acceptance/dynamic/public/;
|
|
expires 7d;
|
|
include upload_folder_security_params;
|
|
}
|
|
location /static/ {
|
|
alias /srv/http/random550/acceptance/static_collected/;
|
|
expires 7d;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://django_server_random7150.example.org;
|
|
include /etc/nginx/django_proxy_params;
|
|
}
|
|
|
|
access_log /var/log/nginx/random550/acceptance/access.log combined_plus;
|
|
error_log /var/log/nginx/random550/acceptance/error.log;
|
|
}
|
|
|
|
server {
|
|
server_name www.random7150.example.org;
|
|
return 301 http://random7150.example.org$request_uri;
|
|
}
|