Advertisement
Guest User

apache rproxy

a guest
Feb 23rd, 2021
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin webmaster@localhost
  3. ServerName *******.*****.com
  4.  
  5. <Proxy *>
  6. Require all granted
  7. </Proxy>
  8.  
  9. ProxyPass "/" "http://10.0.0.17/"
  10. ProxyPassReverse "/" "http://10.0.0.17/"
  11.  
  12. RewriteEngine on
  13. RewriteCond %{SERVER_NAME} =*******.*****.com
  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 *******.*****.com
  20. SSLEngine on
  21.  
  22. <Proxy *>
  23. Require all granted
  24. </Proxy>
  25.  
  26. ProxyPass "/" "http://10.0.0.17/"
  27. ProxyPassReverse "/" "http://10.0.0.17/"
  28.  
  29. Include /etc/letsencrypt/options-ssl-apache.conf
  30. SSLCertificateFile /etc/letsencrypt/live/*******.*****.com/fullchain.pem
  31. SSLCertificateKeyFile /etc/letsencrypt/live/*******.*****.com/privkey.pem
  32. </VirtualHost>
  33. </IfModule>
  34. <VirtualHost *:2022>
  35. ServerAdmin webmaster@localhost
  36. ServerName *******.*****.com
  37.  
  38. <Proxy *>
  39. Require all granted
  40. </Proxy>
  41.  
  42. ProxyPass "/" "https://10.0.0.17:2022/"
  43. ProxyPassReverse "/" "https://10.0.0.17:2022/"
  44.  
  45. RewriteEngine on
  46. RewriteCond %{SERVER_NAME} =*******.*****.com
  47. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  48. </VirtualHost>
  49. <VirtualHost *:8080>
  50. ServerAdmin webmaster@localhost
  51. ServerName *******.*****.com
  52.  
  53. <Proxy *>
  54. Require all granted
  55. </Proxy>
  56.  
  57. ProxyPass "/" "https://10.0.0.17:8080/"
  58. ProxyPassReverse "/" "https://10.0.0.17:8080/"
  59.  
  60. RewriteEngine on
  61. RewriteCond %{SERVER_NAME} =*******.*****.com
  62. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  63. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement