Listen 80
<VirtualHost *:80>
<Directory "E:\aaa" >
Order allow,deny
Allow from all
</Directory>
<Directory "E:\bbb" >
Order allow,deny
Allow from all
</Directory>
ProxyRequests off
<Proxy *>
<Location /aaa>
<Location /bbb>
</VirtualHost>
<VirtualHost *:80>
<Directory "E:\aaa" >
Order allow,deny
Allow from all
</Directory>
<Directory "E:\bbb" >
Order allow,deny
Allow from all
</Directory>
ProxyRequests off
<Proxy *>
Order allow,deny</Proxy>
Allow from all
<Location /aaa>
ProxyPass http://localhost:81</Location>
ProxyPassReverse http://localhost:81
<Location /bbb>
ProxyPass http://localhost:82</Location>
ProxyPassReverse http://localhost:82
</VirtualHost>
其中81、82分别为node开启的web系统,它们是服务器内部端口不对外,对外只有80端口。
配置完毕后,就可以通过如下地址访问内部系统:
http://[外网ip]/aaa
http://[外网ip]/bbb