Allow all http verbs
This commit is contained in:
parent
a618645950
commit
843b01e52d
|
|
@ -25,11 +25,6 @@ server {
|
||||||
# This will enforce HTTP browsing into HTTPS and avoid ssl stripping attack
|
# This will enforce HTTP browsing into HTTPS and avoid ssl stripping attack
|
||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
|
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
|
||||||
|
|
||||||
## Only GET, Post, PUT are allowed##
|
|
||||||
if ($request_method !~ ^(GET|PUT|POST)$ ) {
|
|
||||||
return 444;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
@ -80,11 +75,6 @@ server {
|
||||||
# This will enforce HTTP browsing into HTTPS and avoid ssl stripping attack
|
# This will enforce HTTP browsing into HTTPS and avoid ssl stripping attack
|
||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
|
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
|
||||||
|
|
||||||
## Only GET, Post, PUT are allowed##
|
|
||||||
if ($request_method !~ ^(GET|PUT|POST)$ ) {
|
|
||||||
return 444;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue