Nginx redirect non www to www

This commit is contained in:
2023-09-23 11:14:40 +02:00
parent 45673894af
commit fe355027ea
+13
View File
@@ -5,12 +5,25 @@ events { worker_connections 1024; }
http {
client_max_body_size 5M;
server {
listen 80;
server_name fattidinapoli.it;
return 301 https://www.fattidinapoli.it$request_uri;
}
server {
listen 443 ssl;
server_name fattidinapoli.it;
return 301 https://www.fattidinapoli.it$request_uri;
}
server {
listen 80;
server_name www.ifattidinapoli.it preproduction.ifattidinapoli.it;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;