IIS内网报404外网正常


服务器信息:
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
登录方法:匿名
登录用户:匿名

iis 服务器 apache php

hecate 10 years, 1 month ago

Your Answer