问题描述
我想将所有流量传递到另一台服务器(在本地网络、内联网中) 让我展示这个“httpd-vhost.conf”配置:
#<VirtualHost *:4000 *:4099 *:5000 *:5001 *:5002 *:5003 *:5120>
<VirtualHost *:4000>
ServerName www.my-domine.com
ProxyPass / http://192.168.0.11:4000/
ProxyPassReverse / http://192.168.0.11:4000/
</VirtualHost>
<VirtualHost *:4099>
ServerName www.my-domine.com
ProxyPass / http://192.168.0.11:4099/
ProxyPassReverse / http://192.168.0.11:4099/
</VirtualHost>
<VirtualHost *:5000>
ServerName www.my-domine.com
ProxyPass / http://192.168.0.11:5000/
ProxyPassReverse / http://192.168.0.11:5000/
</VirtualHost>
<VirtualHost *:5001>
ServerName www.my-domine.com
ProxyPass / http://192.168.0.11:5001/
ProxyPassReverse / http://192.168.0.11:5001/
</VirtualHost>
<VirtualHost *:5002>
ServerName www.my-domine.com
ProxyPass / http://192.168.0.11:5002/
ProxyPassReverse / http://192.168.0.11:5002/
</VirtualHost>
[...] etc many like this [...]
我想做得更干净,我想做类似的事情:
“当主机名湖'my-domain'将任何端口的所有流量发送到内网mi本地服务器时”
<VirtualHost www.my-domine.com:any>
ServerName www.my-domine.com
ProxyPass / http://192.168.0.11:any-AndSameAsSource/
ProxyPassReverse / http://192.168.0.11:any-AndSameAsSource/
</VirtualHost>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)