2022-05-09 21:49:19 +02:00
|
|
|
Listen 8000
|
|
|
|
|
<VirtualHost *:8000>
|
2022-09-20 18:56:22 +02:00
|
|
|
# Add error log
|
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
|
|
|
2021-11-30 11:20:42 +01:00
|
|
|
# PHP match
|
|
|
|
|
<FilesMatch "\.php$">
|
2022-09-19 23:43:42 +02:00
|
|
|
SetHandler "proxy:fcgi://${NEXTCLOUD_HOST}:9000"
|
2021-11-30 11:20:42 +01:00
|
|
|
</FilesMatch>
|
|
|
|
|
# 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>
|
2022-01-28 11:36:34 +01:00
|
|
|
|
|
|
|
|
# Fix zero file sizes
|
|
|
|
|
# See https://github.com/nextcloud/server/issues/3056#issuecomment-954209565
|
|
|
|
|
SetEnv proxy-sendcl 1
|
2022-08-22 10:19:28 +02:00
|
|
|
|
|
|
|
|
# See https://httpd.apache.org/docs/current/en/mod/core.html#limitrequestbody
|
|
|
|
|
LimitRequestBody 0
|
2021-11-30 11:20:42 +01:00
|
|
|
</VirtualHost>
|