请帮帮我,当我阻止GET请求时,我收到405不允许,而当我取消阻止GET请求时,POST请求正在工作
请帮助我在不取消阻止GET的情况下获得405不允许?
这是我的default.conf
server {
listen 80 default_server;
server_name localhost ;
root "C:/laragon/www/";
index index.html index.htm index.php;
limit_req zone=perip burst=5 nodelay;
limit_req zone=perserver burst=10;
# Access Restrictions
allow all;
#deny all;
include "C:/laragon/etc/nginx/alias/*.conf";
location ^~ /growtopia/server_data.php {
limit_except POST {
deny all;
}
}
location / {
autoindex on;
limit_req zone=perip burst=5 nodelay;
limit_req zone=perserver burst=10;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass php_upstream;
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
limit_req zone=perip burst=5 nodelay;
limit_req zone=perserver burst=10;
}
charset utf-8;
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
location ~ /\.ht {
deny all;
}
}