-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache2.conf
30 lines (27 loc) · 991 Bytes
/
apache2.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
<IfModule mod_ssl.c>
<VirtualHost *:443>
# Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
ServerAdmin [email protected]
DocumentRoot /var/www/spaste.oxasploits.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName spaste.oxasploits.com
# Include /etc/letsencrypt/options-ssl-apache.conf
ServerAlias spaste
<Directory "/var/www/spaste.oxasploits.com/">
Options +Indexes +FollowSymLinks -ExecCGI
require all granted
# AllowOverride None
</Directory>
<Location "/p/">
Options -Indexes +FollowSymLinks -ExecCGI
require all granted
</Location>
<FilesMatch "^[^.]+$">
ForceType text/plain
</FilesMatch>
SSLCertificateFile /etc/letsencrypt/live/spaste.oxasploits.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/spaste.oxasploits.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>