Skip to content

Instantly share code, notes, and snippets.

@zooks
Created May 26, 2017 08:00
Show Gist options
  • Save zooks/c67cbcabf8aa9cb9bc946c6d813e2a8e to your computer and use it in GitHub Desktop.
Save zooks/c67cbcabf8aa9cb9bc946c6d813e2a8e to your computer and use it in GitHub Desktop.
WordPress nginx.conf
location /blog/ {
try_files $uri $uri/ /blog/index.php?$args;
error_page 404 /404.html;
}
location ~* "/*\.(conf)$" {
deny all;
return 404;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment