Skip to content

Instantly share code, notes, and snippets.

@flashvnn
Last active February 7, 2023 13:44
Show Gist options
  • Save flashvnn/c5d1418486daa1021547ffef5e5dcaaa to your computer and use it in GitHub Desktop.
Save flashvnn/c5d1418486daa1021547ffef5e5dcaaa to your computer and use it in GitHub Desktop.
Go http proxy with apache
<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