Update nginx-site.conf

Making this sane.
This commit is contained in:
Michael Lustfield 2014-02-02 16:08:18 -06:00
parent 63b8233d0c
commit 67602df162

View File

@ -1,21 +1,22 @@
server {
listen 80;
server_name stikked;
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;
# access_log /var/log/nginx/localhost.access_log combined;
# error_log /var/log/nginx/localhost.error_log info;
if ($request_uri !~* ^/(static|favicon\.ico|robots\.txt))
{
rewrite ^/(.*)$ /index.php?/$1 last;
break;
location / {
try_files $uri /index.php;
}
location ~* \.php$ {
location ~ \.php$ {
return 444;
}
location = /index.php {
# fastcgi_pass unix:/
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;