Pass Proxy / Reverse Proxy in VirtualMin Apache

1- Go to services.

2- Configure website / configure SSL website

3- Choose Edit Directives.

4- Add this code (usually after closing the Directory tag)

RewriteEngine on
RewriteCond %{HTTP_HOST} =[domain]/[location]
RewriteRule ^(?!/.well-known)(.*) [your-website]:[your-port][R]
ProxyPass [proxy-url] [your-website]:[your-port]
ProxyPassReverse [proxy-url] [your-website]:[your-port]

Leave a Reply

Your email address will not be published. Required fields are marked *