Created
June 21, 2018 03:15
-
-
Save improve100/1c5f5adf2b668f4355fa390dcdda65dd to your computer and use it in GitHub Desktop.
ubuntu apache2 redirect other web port to 80
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
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