-
Notifications
You must be signed in to change notification settings - Fork 3
/
custom.conf
34 lines (24 loc) · 1.09 KB
/
custom.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
33
34
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule mpm_event_module modules/mod_mpm_event.so
SetOutputFilter DEFLATE
Protocols h2 h2c http/1.1
DocumentRoot /etc/apache2/htdocs
<Directory /etc/apache2/htdocs>
Require all granted
ErrorDocument 404 "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\"><html><head><title>404 Not Found</title></head><body><h1>Unknown Domain</h1><p>The requested domain is not registered with this server.</p></body></html>"
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/?
RewriteRule .* - [L,R=404]
</Directory>
<Location /.well-known/acme-challenge>
ErrorDocument 404 default
Header always unset Strict-Transport-Security
</Location>
Alias /.well-known/acme-challenge /etc/apache2/htdocs/.well-known/acme-challenge
ErrorLog /dev/stderr
AllowEncodedSlashes on