This commit is contained in:
root 2018-05-06 14:23:04 +00:00
parent 551bbb6913
commit 65e9016da7
1 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,48 @@
<VirtualHost *:80>
ServerName oer.hps.vi4io.org
Redirect permanent / https://oer.hps.vi4io.org/
<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
Require all denied
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error-oer.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access-oer.log combined
Include /home/www/hps/dev/apache-generic.conf
Alias "/.well-known/acme-challenge/" "/var/www/certbot/.well-known/acme-challenge/"
<Directory /var/www/certbot>
Options SymLinksIfOwnerMatch
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerAdmin admin@hps.vi4io.org
ServerName oer.hps.vi4io.org
Redirect permanent / https://oer.hps.vi4io.org:8080/
<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
Require all denied
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error-oer.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access-oer.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/oer.hps.vi4io.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/oer.hps.vi4io.org/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>