Michael Lustfield 19d14e00db Update nginx-site.conf
Added default php-fpm socket.
2014-02-02 16:10:57 -06:00

25 lines
616 B
Plaintext

server {
server_name stikked.domain.tld;
root /var/www/stikked/htdocs;
index index.php;
# access_log /var/log/nginx/localhost.access_log combined;
# error_log /var/log/nginx/localhost.error_log info;
location / {
try_files $uri /index.php;
}
location ~ \.php$ {
return 444;
}
location = /index.php {
# fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}