Created
October 20, 2016 06:18
-
-
Save dofy/8513afdb1040e43bf385b2633c579dc3 to your computer and use it in GitHub Desktop.
php site for Nginx
This file contains 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 { | |
listen 80; | |
server_name domain.com; | |
access_log off; | |
root /path/to/your/website; | |
index index.html index.htm index.php; | |
location / { | |
try_files $uri $uri/ /index.php$is_args$args; | |
} | |
location ~ \.php$ { | |
include fastcgi.conf; | |
fastcgi_pass 127.0.0.1:9000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment