-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathapache.conf
More file actions
29 lines (28 loc) · 767 Bytes
/
Copy pathapache.conf
File metadata and controls
29 lines (28 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Listen ${APACHE_PORT}
<VirtualHost *:${APACHE_PORT}>
# PHP match
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
# Nextcloud dir
DocumentRoot /var/www/nextcloud/
<Directory /var/www/nextcloud/>
Options Indexes FollowSymLinks
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
Satisfy Any
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
# SSL
SSLCertificateKeyFile /certs/ssl.key
SSLCertificateFile /certs/ssl.crt
SSLEngine on
SSLProtocol -all +TLSv1.2 +TLSv1.3
# Deny access to .ht files
<Files ".ht*">
Require all denied
</Files>
</VirtualHost>