mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 16:24:39 +02:00
random25863.example.org appears in multiple port 80 virtualhosts in the nginx testdata tarball and also is in the nginx-roundtrip-testdata. Certbot doesn't handle these properly, which results in random test failures. This commit ensures that random25863.example.org only appears in a single virtualhost and should ensure that the tests pass consistently.
36 lines
944 B
Plaintext
36 lines
944 B
Plaintext
upstream django_server_random3140.example.org {
|
|
server unix:/srv/http/random2912/live/website.sock;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name random3140.example.org;
|
|
|
|
location ^~ /media/ {
|
|
alias /srv/http/random2912/live/dynamic/public/;
|
|
expires 7d;
|
|
}
|
|
location ^~ /static/ {
|
|
alias /srv/http/random2912/live/static_collected/;
|
|
expires 7d;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://django_server_random3140.example.org;
|
|
include /etc/nginx/proxy_params;
|
|
|
|
# You can configure access rules here
|
|
}
|
|
|
|
access_log /var/log/nginx/random2912/live/access.log combined_plus;
|
|
error_log /var/log/nginx/random2912/live/error.log;
|
|
}
|
|
|
|
server {
|
|
server_name www.random3140.example.org;
|
|
server_name random28398.example.org;
|
|
server_name random23689.example.org www.random23689.example.org;
|
|
|
|
rewrite ^ http://random3140.example.org$request_uri permanent;
|
|
}
|