2024-04-09 22:10:09 +02:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
server_name _;
|
|
|
|
access_log /logs/nginx.access.log main;
|
|
|
|
sendfile off;
|
|
|
|
root /wwwroot;
|
|
|
|
index index.html;
|
2024-10-21 21:24:00 +00:00
|
|
|
error_page 404 /it/404.html;
|
|
|
|
add_header X-Frame-Options "SAMEORIGIN";
|
|
|
|
add_header X-Content-Type-Options "nosniff";
|
2024-10-22 17:55:33 +00:00
|
|
|
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
include /etc/nginx/http.custom.d/*.conf;
|
|
|
|
|
2024-10-21 21:24:00 +00:00
|
|
|
types {
|
|
|
|
text/calendar ics;
|
2024-10-13 13:50:45 +00:00
|
|
|
}
|
|
|
|
|
2024-04-09 22:10:09 +02:00
|
|
|
location ~ ^/feed {
|
2024-07-13 18:17:47 +00:00
|
|
|
rewrite ^/feed$ /it/index.xml last;
|
|
|
|
rewrite ^/feed/.*$ /it/index.xml last;
|
2024-04-09 22:10:09 +02:00
|
|
|
}
|
|
|
|
|
2024-10-22 17:55:33 +00:00
|
|
|
location = /events/elenco/ {
|
2024-10-05 09:57:26 +00:00
|
|
|
default_type "text/calendar";
|
2024-10-22 17:55:33 +00:00
|
|
|
rewrite ^.*$ /it/index.ics last;
|
2024-10-05 09:57:26 +00:00
|
|
|
}
|
|
|
|
|
2024-10-22 17:55:33 +00:00
|
|
|
location = /wp-content/uploads/2008/02/Statuto.pdf {
|
2024-09-05 19:19:23 +00:00
|
|
|
return 301 https://bglug.it/it/chi-siamo/Statuto.pdf;
|
|
|
|
}
|
|
|
|
|
2024-10-22 17:55:33 +00:00
|
|
|
location ^~ /en/ {
|
2024-07-13 18:11:55 +00:00
|
|
|
error_page 404 /en/404.html;
|
|
|
|
}
|
2024-04-09 22:10:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
gzip on;
|
2024-06-25 20:38:43 +00:00
|
|
|
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js image/x-icon image/svg+xml font/woff2 font/woff application/x-font-woff;
|
2024-04-09 22:10:09 +02:00
|
|
|
gzip_disable "msie6";
|
|
|
|
|
|
|
|
etag on;
|
|
|
|
if_modified_since exact;
|
|
|
|
add_header Pragma "public";
|
|
|
|
add_header Cache-Control "max-age=31536000, public";
|