mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
owncloud: update nginx.conf
This commit is contained in:
parent
9fd9ad339b
commit
250915b8c2
@ -62,6 +62,7 @@ http {
|
|||||||
add_header X-Frame-Options SAMEORIGIN;
|
add_header X-Frame-Options SAMEORIGIN;
|
||||||
add_header X-Content-Type-Options nosniff;
|
add_header X-Content-Type-Options nosniff;
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
|
add_header X-Robots-Tag none;
|
||||||
|
|
||||||
location = /robots.txt {
|
location = /robots.txt {
|
||||||
allow all;
|
allow all;
|
||||||
@ -85,6 +86,7 @@ http {
|
|||||||
location ~ ^(.+?\.php)(/.*)?$ {
|
location ~ ^(.+?\.php)(/.*)?$ {
|
||||||
try_files $1 = 404;
|
try_files $1 = 404;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
fastcgi_param modHeadersAvailable true;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$1;
|
fastcgi_param SCRIPT_FILENAME $document_root$1;
|
||||||
fastcgi_param PATH_INFO $2;
|
fastcgi_param PATH_INFO $2;
|
||||||
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user