Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerAdmin webmaster@localhost
- ServerName example.com
- ServerAlias *.example.com
- <Proxy *>
- Require all granted
- </Proxy>
- ProxyPass "/" "http://10.0.100.100/"
- ProxyPreserveHost On
- RewriteEngine on
- RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
- </VirtualHost>
- <IfModule mod_ssl.c>
- <VirtualHost *:443>
- ServerAdmin webmaster@localhost
- ServerName example.com
- ServerAlias *.example.com
- SSLEngine on
- <Proxy *>
- Require all granted
- </Proxy>
- ProxyPass "/" "http://10.0.100.100/"
- ProxyPreserveHost On
- Include /etc/letsencrypt/options-ssl-apache.conf
- SSLCertificateFile /etc/letsencrypt/live/----------/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/--------/privkey.pem
- </VirtualHost>
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment