Skip to content

Instantly share code, notes, and snippets.

@Blacksly
Last active August 29, 2015 14:02
Show Gist options
  • Save Blacksly/205f5bbc196db22ce7b9 to your computer and use it in GitHub Desktop.
Save Blacksly/205f5bbc196db22ce7b9 to your computer and use it in GitHub Desktop.
nginx
server
{
root /var/www;
index index.php index.html;
server_name adresse_ip_ou_nom_de_domaine;
access_log /var/log/nginx/test-access_log;
error_log /var/log/nginx/test-error_log;
location /
{
try_files $uri $uri/ /index.html;
}
location ~ \.php$
{
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
include fastcgi_params;
}
location /RPC2 {
include /etc/nginx/scgi_params;
scgi_pass 127.0.0.1:5000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment