icp/dev/apache-deploy-proxy.conf

56 lines
1.3 KiB
Plaintext

<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
<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:8081/
ProxyPass "/" "https://localhost:8081/"
ProxyPassReverse "/" "https://localhost:8081/"
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
<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>