http://192.168.1.248/text1 这个.
现有多个可用的二级域名
DNS弄了半天没弄会,有没有个容易点的

发现可以用apache的反向代理
配置如下
<IfModule mod_proxy.c>
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Proxy http://abc.demo.com/text1/*>
SetOutputFilter INCLUDES
</Proxy>
ProxyPass /ok http://192.168.1.248/text1
ProxyPassReverse /ok http://192.168.1.248/text1
</IfModule>
</VirtualHost>

外网访问http://abc.demo.com/ok/ 既可访问http://192.168.1.248/text1
但问题又来了 不知道为什么只能访问主页 其页都不可以 一片空白"/>

apache 内网 多主机

发布时间:2024-06-27 02:29 发布:上海旅游网

问题描述:

环境如下:
有一台同时连接外网和内网的计算机,架设了WEB服务器,使用的是APACHE
内网有一台计算机,IP 192.168.1.248 也是WEB服务器,IIS.
现在要其他人能通过这台同计算机连接到内网的计算机上. 而且不是主页
而是 http://192.168.1.248/text1 这个.
现有多个可用的二级域名
DNS弄了半天没弄会,有没有个容易点的

发现可以用apache的反向代理
配置如下
<IfModule mod_proxy.c>
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Proxy http://abc.demo.com/text1/*>
SetOutputFilter INCLUDES
</Proxy>
ProxyPass /ok http://192.168.1.248/text1
ProxyPassReverse /ok http://192.168.1.248/text1
</IfModule>
</VirtualHost>

外网访问http://abc.demo.com/ok/ 既可访问http://192.168.1.248/text1
但问题又来了 不知道为什么只能访问主页 其页都不可以 一片空白

问题解答:

你在主机-就是那台同时连接外网和内网的服务器上做一下dns解析,域名指向http://192.168.1.248/text1上面就可以了

.

热点新闻