Commit c69ebd85 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Allow access to WP comments POST endpoint

parent 971a3ca6
Loading
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -78,6 +78,20 @@ server {
		include cache-bust.conf;
	}

	location = /wp-comments-post.php {
		error_page 403 = @post-only;
		limit_except POST {
			deny all;
		}
		include fastcgi-script.conf;
		include cache-bust.conf;
	}

	location @post-only {
		add_header Allow "POST" always;
		return 405;
	}

	location /wp-admin/ {
		try_files $uri $uri/index.php;