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;