Heim  >  Artikel  >  Backend-Entwicklung  >  IIS内网报404外网正常

IIS内网报404外网正常

WBOY
WBOYOriginal
2016-06-06 20:46:131758Durchsuche

服务器信息:
os:windows server 2008
iis:7.5
问题描述:
搭建了一个测试网站,比如:http://xxxxx.com
然后在内网和外网都可以访问到
之后,配置404,重定向到index.php,即:http://xxxxx.com/11111.php(不存在)就会重定向到http://xxxxx.com/index.php
问题就出在这,在外网访问的时候,可以正常重定向到index.php,但是在内网访问(即服务器本机上)的时候,会报如下错误:

详细错误信息
HTTP 错误 404.0 - Not Found
您要找的资源已被删除、已更名或暂时不可用。
模块:IIS Web Core
通知:MapRequestHandler
处理程序:php-5.3.28
错误代码:0x80070002
请求的 URL:http://xxxxx.com/11111.php
物理路径:D:\www\test\liuyan.php
登录方法:匿名
登录用户:匿名

回复内容:

服务器信息:
os:windows server 2008
iis:7.5
问题描述:
搭建了一个测试网站,比如:http://xxxxx.com
然后在内网和外网都可以访问到
之后,配置404,重定向到index.php,即:http://xxxxx.com/11111.php(不存在)就会重定向到http://xxxxx.com/index.php
问题就出在这,在外网访问的时候,可以正常重定向到index.php,但是在内网访问(即服务器本机上)的时候,会报如下错误:

详细错误信息
HTTP 错误 404.0 - Not Found
您要找的资源已被删除、已更名或暂时不可用。
模块:IIS Web Core
通知:MapRequestHandler
处理程序:php-5.3.28
错误代码:0x80070002
请求的 URL:http://xxxxx.com/11111.php
物理路径:D:\www\test\liuyan.php
登录方法:匿名
登录用户:匿名

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn