-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapache.conf
More file actions
33 lines (30 loc) · 1.15 KB
/
apache.conf
File metadata and controls
33 lines (30 loc) · 1.15 KB
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
<VirtualHost *:80>
ServerAdmin webmaster@morsetrainer.pa5wpm.nl
ServerName morsetrainer.pa5wpm.nl
DocumentRoot /var/www/morsetrainer
Redirect permanent / https://morstrainer.pa5wpm.nl/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@morsetrainer.pa5wpm.nl
ServerName morsetrainer.pa5wpm.nl
DocumentRoot /var/www/morsetrainer
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/cert_pa5wpm.nl.crt
SSLCertificateKeyFile /etc/ssl/private/star_pa5wpm_nl.key
<Directory /var/www/morsetrainer>
RewriteEngine on
# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Rewrite everything else to index.html
# to allow html5 state links
RewriteRule ^ index.html [L]
</Directory>
Protocols h2 http/1.1
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet