Testing changes

This commit is contained in:
WilliamMiceli
2018-12-10 14:39:31 -05:00
parent 2d3f943ca5
commit 5568cb360d
3 changed files with 39 additions and 26 deletions

View File

@@ -27,7 +27,7 @@ http {
fastcgi_hide_header X-Powered-By;
# Path to the root of your installation
root /var/www/nextcloud/;
root /var/www/html/;
location = /robots.txt {
allow all;
@@ -71,17 +71,24 @@ http {
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
deny all;
}
############################################################################################################################### Suspected current issue location
location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+)\.php(?:$|/) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
include fastcgi.conf;
# Mitigate https://httpoxy.org/ vulnerabilities
fastcgi_param HTTP_PROXY "";
fastcgi_pass php-handler;
fastcgi_index index.php;
# include the fastcgi_param setting
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
# fastcgi_param HTTPS on;
# fastcgi_param HTTPS on; # Handled through Traefik
#Avoid sending the security headers twice
fastcgi_param modHeadersAvailable true;
fastcgi_param front_controller_active true;
fastcgi_pass php-handler;
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
}