Created
April 14, 2015 07:51
-
-
Save foru17/1f8328a2a256563e81ab to your computer and use it in GitHub Desktop.
php 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 im; | |
access_log /var/www/website/access.log; | |
error_log /var/www/website/error.log; | |
location / { | |
root /var/www/website; | |
index index.html index.htm index.php; | |
} | |
location ~ \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME /var/www/website$fastcgi_script_name; | |
include /etc/nginx/fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment