Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName privatebin.domain
- CustomLog /home/log/apache2/pbin-access.log combined
- ErrorLog /home/log/apache2/pbin-error.log
- ProxyRequests off
- ProxyPreserveHost On
- Alias "/.well-known/acme-challenge/" "/var/www/html/.well-known/acme-challenge/"
- RewriteEngine On
- RewriteCond %{REQUEST_URI} !^\/\.well-known\/acme-challenge.*$
- RewriteRule (.*) https://privatebin.domain/$1 [R,L]
- </VirtualHost>
- <VirtualHost *:443>
- ServerName privatebin.domain
- ErrorLog /var/log/apache2/pbinproxy_error_ssl.log
- CustomLog /var/log/apache2/pbinproxy_access_ssl.log combined
- SSLProxyEngine On
- ProxyRequests off
- ProxyPreserveHost On
- ProxyPass / https://privatebin.domain/
- ProxyPassReverse / https://privatebin.domain/
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement