mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
33 lines
903 B
Plaintext
33 lines
903 B
Plaintext
upstream django_server_random16722.example.org {
|
|
server unix:/srv/http/random16722.example.org/live/website.sock;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name random16722.example.org;
|
|
|
|
location ^~ /media/ {
|
|
alias /srv/http/random16722.example.org/live/dynamic/public/;
|
|
expires 7d;
|
|
}
|
|
location ^~ /static/ {
|
|
alias /srv/http/random16722.example.org/live/static_collected/;
|
|
expires 7d;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://django_server_random16722.example.org;
|
|
include /etc/nginx/proxy_params;
|
|
|
|
# You can configure access rules here
|
|
}
|
|
|
|
access_log /var/log/nginx/random16722.example.org/live/access.log combined_plus;
|
|
error_log /var/log/nginx/random16722.example.org/live/error.log;
|
|
}
|
|
|
|
server {
|
|
server_name www.random16722.example.org;
|
|
rewrite ^ http://random16722.example.org$request_uri permanent;
|
|
}
|