Apache代理80端口

找到Apache下的confextrahttpd-vhosts.conf文件

新增以下内容于合适位置

↓表示80端口

<VirtualHost *:80>           
ServerAdmin *@*.com
ServerName 域名

 ServerAlias *.域名
ProxyPreserveHost on
ProxyRequests off
ProxyPass / http://IP:PORT/
ProxyPassReverse / IP:PORT/
</VirtualHost>

通过八零端口访问的都会映射到这个地址上

原文地址:https://www.cnblogs.com/flying607/p/4193565.html