owncloud: update nginx.conf

This commit is contained in:
Wonderfall 2016-04-13 14:13:42 +02:00
parent 9fd9ad339b
commit 250915b8c2

View File

@ -62,6 +62,7 @@ http {
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
location = /robots.txt {
allow all;
@ -85,6 +86,7 @@ http {
location ~ ^(.+?\.php)(/.*)?$ {
try_files $1 = 404;
include fastcgi_params;
fastcgi_param modHeadersAvailable true;
fastcgi_param SCRIPT_FILENAME $document_root$1;
fastcgi_param PATH_INFO $2;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;