mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-09-20 14:32:53 +00:00
Update Nginx configuration
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user