mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-11-16 20:14:39 +08:00
ccad3bc98c
Signed-off-by: Simon L <szaimen@e.mail.de>
49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
Listen 8000
|
|
<VirtualHost *:8000>
|
|
ServerName localhost
|
|
|
|
# Add error log
|
|
CustomLog /proc/self/fd/1 combined
|
|
ErrorLog /proc/self/fd/2
|
|
|
|
# PHP match
|
|
<FilesMatch "\.php$">
|
|
SetHandler "proxy:fcgi://${NEXTCLOUD_HOST}:9000"
|
|
</FilesMatch>
|
|
|
|
# Enable Brotli compression for js files
|
|
<IfModule mod_brotli.c>
|
|
AddOutputFilterByType BROTLI_COMPRESS text/javascript application/javascript application/x-javascript
|
|
BrotliCompressionQuality 0
|
|
</IfModule>
|
|
|
|
# Nextcloud dir
|
|
DocumentRoot /var/www/html/
|
|
<Directory /var/www/html/>
|
|
Options Indexes FollowSymLinks
|
|
Require all granted
|
|
AllowOverride All
|
|
Options FollowSymLinks MultiViews
|
|
Satisfy Any
|
|
<IfModule mod_dav.c>
|
|
Dav off
|
|
</IfModule>
|
|
</Directory>
|
|
# Deny access to .ht files
|
|
<Files ".ht*">
|
|
Require all denied
|
|
</Files>
|
|
|
|
# Fix zero file sizes
|
|
# See https://github.com/nextcloud/server/issues/3056#issuecomment-954209565
|
|
SetEnv proxy-sendcl 1
|
|
|
|
# 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}
|
|
</VirtualHost>
|