Skip to content

Instantly share code, notes, and snippets.

@improve100
Created June 21, 2018 03:15
Show Gist options
  • Save improve100/1c5f5adf2b668f4355fa390dcdda65dd to your computer and use it in GitHub Desktop.
Save improve100/1c5f5adf2b668f4355fa390dcdda65dd to your computer and use it in GitHub Desktop.
ubuntu apache2 redirect other web port to 80
sudo a2enmod proxy && sudo a2enmod proxy_http
<VirtualHost *:80>
ServerName cloud.sanmen.home
ProxyPreserveHost On
ProxyPass / http://localhost:81/
ProxyPassReverse / http://localhost:81/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment