2021-11-30 18:20:42 +08:00
|
|
|
Listen 8000
|
|
|
|
Listen 8080
|
|
|
|
|
|
|
|
# Deny access to .ht files
|
|
|
|
<Files ".ht*">
|
|
|
|
Require all denied
|
|
|
|
</Files>
|
|
|
|
|
|
|
|
# Http host
|
|
|
|
<VirtualHost *:8000>
|
2022-10-30 08:02:46 +08:00
|
|
|
ServerName localhost
|
|
|
|
|
2023-01-28 04:36:53 +08:00
|
|
|
# Add error log
|
2023-06-18 07:04:42 +08:00
|
|
|
CustomLog /proc/self/fd/1 proxy
|
|
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
|
2023-01-28 04:36:53 +08:00
|
|
|
ErrorLog /proc/self/fd/2
|
2023-06-18 07:04:42 +08:00
|
|
|
ErrorLogFormat "[%t] [%l] [%E] [client: %{X-Forwarded-For}i] [%M] [%{User-Agent}i]"
|
|
|
|
LogLevel warn
|
2023-01-28 04:36:53 +08:00
|
|
|
|
2021-11-30 18:20:42 +08:00
|
|
|
# PHP match
|
|
|
|
<FilesMatch "\.php$">
|
2023-09-21 21:38:23 +08:00
|
|
|
SetHandler "proxy:fcgi://localhost:9000"
|
2021-11-30 18:20:42 +08:00
|
|
|
</FilesMatch>
|
|
|
|
# Master dir
|
|
|
|
DocumentRoot /var/www/docker-aio/php/public/
|
|
|
|
<Directory /var/www/docker-aio/php/public/>
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteRule ^ index.php [QSA,L]
|
|
|
|
Options Indexes FollowSymLinks
|
|
|
|
Require all granted
|
|
|
|
AllowOverride All
|
|
|
|
Options FollowSymLinks MultiViews
|
|
|
|
Satisfy Any
|
|
|
|
<IfModule mod_dav.c>
|
|
|
|
Dav off
|
|
|
|
</IfModule>
|
|
|
|
</Directory>
|
|
|
|
</VirtualHost>
|
|
|
|
|
2022-01-28 22:44:12 +08:00
|
|
|
# Increase timeout in case e.g. the initial download takes a long time
|
|
|
|
Timeout 7200
|
|
|
|
ProxyTimeout 7200
|