updating nginx sampleconf with alternative. fixes #213

This commit is contained in:
Claude 2015-09-02 15:18:17 +02:00
parent 41e63fbd80
commit 7c17a4f311

View File

@ -22,3 +22,31 @@ server {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
# alternatively:
server {
server_name stikked.domain;
root /var/www/vhosts/stikked.domain/httpdocs;
index index.php;
error_log /var/log/nginx/stikked.domain.error.log;
access_log /var/log/nginx/stikked.domain.access.log;
# no caching
expires 0;
if ($request_uri !~* ^/(static|favicon\.ico|robots\.txt))
{
rewrite ^/(.*)$ /index.php?/$1 last;
break;
}
location ~* \.php$ {
include fastcgi_params;
fastcgi_pass unix://var/lib/php5/php5-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}