From 250915b8c256c5d7ed0a808ad4c4a7a09632d477 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Wed, 13 Apr 2016 14:13:42 +0200 Subject: [PATCH] owncloud: update nginx.conf --- owncloud/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/owncloud/nginx.conf b/owncloud/nginx.conf index 44b95c8..f1bbcfb 100644 --- a/owncloud/nginx.conf +++ b/owncloud/nginx.conf @@ -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;