Listen 8000 ServerName localhost # Add error log CustomLog /proc/self/fd/1 proxy LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy ErrorLog /proc/self/fd/2 ErrorLogFormat "[%t] [%l] [%E] [client: %{X-Forwarded-For}i] [%M] [%{User-Agent}i]" LogLevel ${AIO_LOG_LEVEL} # PHP match SetHandler "proxy:fcgi://${NEXTCLOUD_HOST}:9000" # Compress JS, CSS and SVG responses with Brotli. # Other plain-text files are already compressed by Nextcloud itself. # Desktop and mobile sync clients never request JS/CSS/SVG assets. AddOutputFilterByType BROTLI_COMPRESS text/javascript application/javascript application/x-javascript text/css image/svg+xml BrotliCompressionQuality 0 # Nextcloud dir DocumentRoot /var/www/html/ Options FollowSymLinks MultiViews Require all granted AllowOverride All Dav off # Deny access to .ht files Require all denied # See https://httpd.apache.org/docs/current/en/mod/core.html#limitrequestbody LimitRequestBody ${APACHE_MAX_SIZE} # See https://httpd.apache.org/docs/current/mod/core.html#timeout Timeout ${APACHE_MAX_TIME} # See https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxytimeout ProxyTimeout ${APACHE_MAX_TIME} # See https://httpd.apache.org/docs/trunk/mod/core.html#traceenable TraceEnable Off