Last active
February 7, 2023 13:44
-
-
Save flashvnn/c5d1418486daa1021547ffef5e5dcaaa to your computer and use it in GitHub Desktop.
Go http proxy with apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost 10.0.0.195:80> | |
ServerAlias *.tunnel.example.com | |
ProxyPass / http://localhost:7080/ | |
ProxyPassReverse / http://localhost:7080/ | |
UseCanonicalName on | |
ProxyPreserveHost on | |
</VirtualHost> | |
# Support ssl .well-known folder for virtualmin | |
<VirtualHost *:80> | |
ServerName subdomain12.yourdomain.com | |
ProxyPreserveHost On | |
DocumentRoot /var/www/html | |
ProxyPass /.well-known ! | |
ProxyPass / http://10.1.1.12:80/ | |
ProxyPassReverse / http://10.1.1.12:80/ | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment