Update Nginx configuration

This commit is contained in:
Christer Warén
2025-09-11 13:03:33 +03:00
parent e8a08eef20
commit 340ad5c317
2 changed files with 129 additions and 10 deletions

View File

@@ -21,11 +21,6 @@ server {
return 301 https://$host$request_uri;
}
if ($request_method !~ ^(GET|HEAD|POST)$ )
{
return 405;
}
}
server {
@@ -62,9 +57,4 @@ server {
root /usr/share/nginx/html;
index index.html index.htm;
}
if ($request_method !~ ^(GET|HEAD|POST)$ )
{
return 405;
}
}