worker_processes 1; events { worker_connections 1024; } http { client_max_body_size 5M; server { listen 80; server_name www.ifattidinapoli.it preproduction.ifattidinapoli.it; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name www.ifattidinapoli.it preproduction.ifattidinapoli.it default_server; ssl_certificate /etc/ssl/2023/www_ifattidinapoli_it.chained.crt; ssl_certificate_key /etc/ssl/2023/fdn.key; location / { proxy_pass http://fdn2.production.webserver/; proxy_redirect off; proxy_set_header Host $host; } } server { listen 80; server_name test.ifattidinapoli.it; location / { proxy_pass http://fdn2.test.webserver/; proxy_redirect off; proxy_set_header Host $host; } } }