forked from cleathers/deno-drash-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache.conf
34 lines (29 loc) · 1.07 KB
/
apache.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
<IfModule mod_ssl.c>
#·Force·HTTPS
<VirtualHost *:80>
Redirect·permanent·/·https://sd.tld.ext/
</VirtualHost>
# Set up website on HTTPS
<VirtualHost *:443>
ServerName·sd.tld.ext
DocumentRoot·/path/to/website
<Directory /path/to/website>
#·Display the following pages·(these·are·relative·to·DocumentRoot)
ErrorDocument·400·/src/Error400.html
ErrorDocument·401·/src/Error401.html
ErrorDocument·403·/src/Error403.html
ErrorDocument·404·/src/Error404.html
ErrorDocument·500·/src/Error500.html
# Allow access to the website directory
Require·all·granted
</Directory>
#·Proxy setup
ProxyPreserveHost·On
ProxyPass·/·http://127.0.0.1:1445/
ProxyPassReverse·/·http://127.0.0.1:1445/
#·SSL·setup
Include·/path/to/ssl.conf
SSLCertificateFile·/path/to/certfile.pem
SSLCertificateKeyFile·/path/to/certkeyfile.pem
</VirtualHost>
</IfModule>