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