mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 16:54:59 +02:00
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
upstream django_server_random8404.example.org {
|
|
server unix:/srv/http/random1006/internal/website.sock;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name random8404.example.org;
|
|
|
|
location ^~ /media/ {
|
|
alias /srv/http/random1006/internal/website/static/;
|
|
expires 7d;
|
|
}
|
|
#location ^~ /static/ {
|
|
# alias /srv/http/random1006/internal/website/static/;
|
|
# expires 7d;
|
|
#}
|
|
|
|
location / {
|
|
proxy_pass http://django_server_random8404.example.org;
|
|
include /etc/nginx/proxy_params;
|
|
|
|
satisfy any;
|
|
auth_basic 'internal for random1006';
|
|
auth_basic_user_file /srv/http/random1006/internal/htpasswords;
|
|
include /etc/nginx/allow_ytec_ips_params;
|
|
deny all;
|
|
}
|
|
|
|
access_log /var/log/nginx/random1006/internal/access.log combined_plus;
|
|
error_log /var/log/nginx/random1006/internal/error.log;
|
|
}
|
|
|
|
server {
|
|
server_name www.random8404.example.org;
|
|
rewrite ^ http://random8404.example.org$request_uri permanent;
|
|
}
|