如何解决Apache2 vHost conf - 如何监听端口范围?
我想将所有流量传递到另一台服务器(在本地网络、内联网中) 让我展示这个“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 举报,一经查实,本站将立刻删除。