server { listen 443 ssl http2; listen [::]:443 ssl http2; ssl_certificate $JC_CERT/fullchain.pem; ssl_certificate_key $JC_CERT/privkey.pem; server_name wordpress.compagnienouvelle.fr www.wordpress.compagnienouvelle.fr; location / { auth_basic "Mot de passeĀ !"; auth_basic_user_file /data/compagnienouvelle.fr/pass.txt; client_max_body_size 2G; #proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto https; proxy_pass http://$NET.100; proxy_redirect off; } } server { listen 443 ssl http2; listen [::]:443 ssl http2; ssl_certificate $JC_CERT/fullchain.pem; ssl_certificate_key $JC_CERT/privkey.pem; server_name compagnienouvelle.fr www.compagnienouvelle.fr; location / { root /data/compagnienouvelle.fr/static; try_files $uri $uri/ =404; } }