aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nginx_config4
1 files changed, 4 insertions, 0 deletions
diff --git a/nginx_config b/nginx_config
index 8a70167..b18fb09 100644
--- a/nginx_config
+++ b/nginx_config
@@ -53,6 +53,10 @@ server {
#ssl_certificate_key <path to TLS key>;
#ssl_dhparam <path to DH params, optional>;
+ if ($request_method !~ ^(GET|HEAD)$) {
+ return 405; # Method Not Allowed
+ }
+
root <path to site root>;
index index.html;