increased security for nginx

This commit is contained in:
Claude 2013-04-16 20:07:54 +02:00
parent 86ec3943f2
commit 99e209010f

View File

@ -7,8 +7,10 @@ server {
# access_log /var/log/nginx/localhost.access_log combined;
# error_log /var/log/nginx/localhost.error_log info;
location / {
try_files $uri $uri/ /index.php;
if ($request_uri !~* ^/(static|favicon\.ico|robots\.txt))
{
rewrite ^/(.*)$ /index.php?/$1 last;
break;
}
location ~* \.php$ {