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