Skip to content

Instantly share code, notes, and snippets.

@netaustin
Created September 26, 2013 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netaustin/6721246 to your computer and use it in GitHub Desktop.
Save netaustin/6721246 to your computer and use it in GitHub Desktop.
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}
location ^~ /wp-login.php {
deny all;
}
location ~ \.php$ {
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment