Last active
August 29, 2015 14:02
-
-
Save Blacksly/205f5bbc196db22ce7b9 to your computer and use it in GitHub Desktop.
nginx
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 | |
{ | |
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