vHost use apache2 from ip:port to ip

Mario tsai
Nov 13, 2023


Like to

IN Ubuntu

sudo vim /etc/apache2/sites-available/000-default.conf

Copy and paste

<VirtualHost *:80>    
ServerName localhost
ProxyPreserveHost On
ProxyRequests off

<Proxy *>
Order deny,allow
Allow from all

ProxyPass / http://localhost:58080/
ProxyPassReverse / http://localhost:58080/


sudo systemctl restart apache2




Mario tsai

Major in physical education. Football referee. And high interest in looking the world through the numbers.