Guest User

server1

a guest
Mar 9th, 2023
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin webmaster@localhost
  3. ServerName example.com
  4. ServerAlias *.example.com
  5.  
  6. <Proxy *>
  7. Require all granted
  8. </Proxy>
  9.  
  10. ProxyPass "/" "http://10.0.100.100/"
  11. ProxyPreserveHost On
  12.  
  13. RewriteEngine on
  14. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  15. </VirtualHost>
  16. <IfModule mod_ssl.c>
  17. <VirtualHost *:443>
  18. ServerAdmin webmaster@localhost
  19. ServerName example.com
  20. ServerAlias *.example.com
  21.  
  22. SSLEngine on
  23.  
  24. <Proxy *>
  25. Require all granted
  26. </Proxy>
  27.  
  28. ProxyPass "/" "http://10.0.100.100/"
  29. ProxyPreserveHost On
  30.  
  31. Include /etc/letsencrypt/options-ssl-apache.conf
  32. SSLCertificateFile /etc/letsencrypt/live/----------/fullchain.pem
  33. SSLCertificateKeyFile /etc/letsencrypt/live/--------/privkey.pem
  34. </VirtualHost>
  35. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment