Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:443>
- ServerAdmin webmaster@localhost
- ServerName newcloud.deymed.com:443
- Alias /.well-known /var/www/vhosts/letsEncryptVerify/.well-known
- ErrorLog ${APACHE_LOG_DIR}/newcloud.deymed.com.error.log
- SSLEngine on
- SSLCertificateFile /etc/letsencrypt/live/newcloud.deymed.com/cert.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/newcloud.deymed.com/privkey.pem
- Include /etc/letsencrypt/options-ssl-apache.conf
- SSLCertificateChainFile /etc/letsencrypt/live/newcloud.deymed.com/chain.pem
- RewriteEngine on
- SSLProxyEngine On
- ProxyPreserveHost On
- ProxyPass /.well-known !
- ProxyPass / http://172.16.255.242/
- ProxyPassReverse / http://172.16.255.242/
- ProxyPassReverseCookiePath / http://172.16.255.242/
- RequestHeader set X-Forwarded-Proto "https" env=HTTPS
- </VirtualHost>
- <VirtualHost *:80>
- ServerAdmin webmaster@localhost
- ServerName newcloud.deymed.com
- Redirect permanent / https://newcloud.deymed.com/
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement