Skip to content

Instantly share code, notes, and snippets.

@foru17
Created April 14, 2015 07:51
Show Gist options
  • Save foru17/1f8328a2a256563e81ab to your computer and use it in GitHub Desktop.
Save foru17/1f8328a2a256563e81ab to your computer and use it in GitHub Desktop.
php nginx 配置
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