Commit aa83fc67 authored by Staiger, Christine's avatar Staiger, Christine
Browse files

Update Davrods install

parent 786032ca
......@@ -57,7 +57,13 @@ To enable an existing Davrods installation with SSL do:
openssl req -x509 -nodes -days 4000 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
```
3. Edit the `davrods-vhost.conf`in `/etc/apache2/sites-enabled`
3. Enable ssl in apache
```
a2enmod ssl
```
4. Edit the `davrods-vhost.conf`in `/etc/apache2/sites-enabled`
```
<VirtualHost *:443>
......@@ -71,23 +77,23 @@ SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
```
4. Check the apache configuration and restart the service
5. Check the apache configuration and restart the service
```
apache2ctl configtest
systemctl reload apache2
```
5. Redirect HTTP to HTTPS
6. Redirect HTTP to HTTPS
Edit `/etc/apache2/sites-available/000-default.conf`
Edit `/etc/apache2/sites-available/000-default.conf`
```
ServerName <fqdn or ip>
Redirect permanent / https://<fqdn or ip>
```
Reload apache2 with `systemctl reload apache2`.
Reload apache2 with `systemctl reload apache2`.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment