Advertisement
Guest User

linuxback

a guest
May 13th, 2024
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <VirtualHost *:80>
  2.  
  3. ServerName privatebin.domain
  4. CustomLog /home/log/apache2/pbin-access.log combined
  5. ErrorLog /home/log/apache2/pbin-error.log
  6.  
  7. ProxyRequests off
  8. ProxyPreserveHost On
  9.  
  10. Alias "/.well-known/acme-challenge/" "/var/www/html/.well-known/acme-challenge/"
  11.  
  12. RewriteEngine On
  13. RewriteCond %{REQUEST_URI} !^\/\.well-known\/acme-challenge.*$
  14. RewriteRule (.*) https://privatebin.domain/$1 [R,L]
  15.  
  16. </VirtualHost>
  17.  
  18. <VirtualHost *:443>
  19.  
  20. ServerName privatebin.domain
  21.  
  22. ErrorLog /var/log/apache2/pbinproxy_error_ssl.log
  23. CustomLog /var/log/apache2/pbinproxy_access_ssl.log combined
  24.  
  25. SSLProxyEngine On
  26. ProxyRequests off
  27. ProxyPreserveHost On
  28. ProxyPass / https://privatebin.domain/
  29. ProxyPassReverse / https://privatebin.domain/
  30.  
  31.  
  32. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement