Created
May 8, 2015 14:41
-
-
Save blindpet/7bd2c80a3979b6dc8a8b to your computer and use it in GitHub Desktop.
nginx Wordpress php5-fpm dotdeb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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