Skip to content

Instantly share code, notes, and snippets.

@joshourisman
Created January 7, 2011 21:29
Show Gist options
  • Save joshourisman/770136 to your computer and use it in GitHub Desktop.
Save joshourisman/770136 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name example;
error_log /var/www/wordpress_blog/logs/nginx_error.log error;
root /var/www/wordpress_blog/public/;
try_files $uri @php;
location @php {
include fastcgi_params;
fastcgi_pass 127.0.0.1:8080;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:8080;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment