-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextcloud_ssl.conf
32 lines (25 loc) · 906 Bytes
/
nextcloud_ssl.conf
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
30
31
32
<VirtualHost *:443>
ServerName nextcloud.local
DocumentRoot /var/www/nextcloud
Protocols h2 h2c http/1.1
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/php8.2-fpm.sock|fcgi:https://localhost"
</FilesMatch>
<Directory /var/www/nextcloud/>
Satisfy Any
Require all granted
Options FollowSymlinks MultiViews
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
</IfModule>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
ErrorLog /var/log/apache2/nextcloud_ssl.error_log
CustomLog /var/log/apache2/nextcloud_ssl.access_log common
</VirtualHost>