58 lines
1.5 KiB
Nginx Configuration File
58 lines
1.5 KiB
Nginx Configuration File
worker_processes 1;
|
|
|
|
events { worker_connections 1024; }
|
|
|
|
http {
|
|
client_max_body_size 5M;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name ifattidinapoli.it;
|
|
return 301 https://www.ifattidinapoli.it$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name ifattidinapoli.it;
|
|
ssl_certificate /etc/ssl/2025/www_ifattidinapoli_it.chained.crt;
|
|
ssl_certificate_key /etc/ssl/2025/www_ifattidinapoli_it.key;
|
|
return 301 https://www.ifattidinapoli.it$request_uri;
|
|
}
|
|
|
|
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/2025/www_ifattidinapoli_it.chained.crt;
|
|
ssl_certificate_key /etc/ssl/2025/www_ifattidinapoli_it.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;
|
|
}
|
|
|
|
}
|
|
|
|
}
|