Skip to content

Instantly share code, notes, and snippets.

@poppen
Created May 27, 2011 07:14
Show Gist options
  • Save poppen/994786 to your computer and use it in GitHub Desktop.
Save poppen/994786 to your computer and use it in GitHub Desktop.
location ~ /wordpress/(.*\.php) {
alias /var/www/wordpress/$1;
fastcgi_pass php5;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
location /wordpress/ {
alias /var/www/wordpress/;
try_files $uri $uri/ /wordpress/index.php;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment