Skip to content

Instantly share code, notes, and snippets.

@blindpet
Created May 8, 2015 14:41
Show Gist options
  • Save blindpet/7bd2c80a3979b6dc8a8b to your computer and use it in GitHub Desktop.
Save blindpet/7bd2c80a3979b6dc8a8b to your computer and use it in GitHub Desktop.
nginx Wordpress php5-fpm dotdeb
server {
server_name default_server;
access_log /var/log/nginx/htpcguides.com.access.log;
error_log /var/log/nginx/htpcguides.com.error.log;
root /var/www/htpcguides.com/;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
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