mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-09-21 23:36:31 +08:00
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
|
Listen 8000
|
||
|
Listen 8080
|
||
|
|
||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||
|
|
||
|
# Deny access to .ht files
|
||
|
<Files ".ht*">
|
||
|
Require all denied
|
||
|
</Files>
|
||
|
|
||
|
# Http host
|
||
|
<VirtualHost *:8000>
|
||
|
# PHP match
|
||
|
<FilesMatch "\.php$">
|
||
|
SetHandler application/x-httpd-php
|
||
|
</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>
|
||
|
|
||
|
# Https host
|
||
|
<VirtualHost *:8080>
|
||
|
# Proxy to https
|
||
|
ProxyPass / http://localhost:8000/
|
||
|
ProxyPassReverse / http://localhost:8000/
|
||
|
# SSL
|
||
|
SSLCertificateKeyFile /etc/apache2/certs/ssl.key
|
||
|
SSLCertificateFile /etc/apache2/certs/ssl.crt
|
||
|
SSLEngine on
|
||
|
SSLProtocol -all +TLSv1.2 +TLSv1.3
|
||
|
</VirtualHost>
|