分享

写回答

发帖

[提问] 免费win空间.net问题

GoDaddy GoDaddy 2189 人阅读 | 6 人回复

发表于 2010-7-10 13:40:50 | 显示全部楼层 |阅读模式

正确输入网址后直接给跳转到index.html,而这文件是不存在的。现在重新设置了web.config文件后出现如下错误,请高手帮忙看下是什么原因
地址:http://wap.9281.info

Server Error in Application "9281.INFO/WAP"Internet Information Services 7.0

Error Summary
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory. Detailed Error InformationModule DirectoryListingModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x00000000
Requested URL http://wap.9281.info:80/wap/
Physical Path D:\Hosting\6395404\html\wap\
Logon Method Anonymous
Logon User Anonymous
Most likely causes:
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
Things you can try:
If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
Enable directory browsing using IIS Manager.
Open IIS Manager.
In the Features view, double-click Directory Browsing.
On the Directory Browsing page, in the Actions pane, click Enable.
Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.
Links and More InformationThis error occurs when a document is not specified in the URL, no default document is specified for the Web site or application, and directory listing is not enabled for the Web site or application. This setting may be disabled on purpose to secure the contents of the server.
View more information »

回答|共 6 个

add.c

发表于 2010-7-10 13:54:12 | 显示全部楼层

访问正常, 不过你设置显示文件列表了. 而列表里的文件又不存在

wapwuw

发表于 2010-7-10 20:37:37 | 显示全部楼层

我把文件都正常上传到空间了的。ASP的能正常访问,而ASPX却都是出现那个错误。文件列表哪里设置???
RAKSmart

aixue

发表于 2010-7-10 20:51:50 | 显示全部楼层

很简单,把web.config文件删掉,把空间的默认首页改为你的首页,比如index.php,空间后台有设置,首页一般默认index.html,index.asp,index.htm,index.php,你的首页尾缀不在这个之列,所以,它会默认指向index.html。或者你把你的首页文件的名改为index.html试试,能打开就对了。

aixue

发表于 2010-7-10 20:53:30 | 显示全部楼层

原帖由 wapwuw 于 2010-7-10 08:37 PM 发表
我把文件都正常上传到空间了的。ASP的能正常访问,而ASPX却都是出现那个错误。文件列表哪里设置???


哦。原来你的首页是index.ASPX的?
那你就要去GD空间的后台去添加index.ASPX为优先。

wapwuw

发表于 2010-7-11 15:15:53 | 显示全部楼层

看了很多的教程,都说不可以设置index.aspx,即使设置成别deful.aspx也是不行的。

tianping88

发表于 2010-7-11 18:40:29 | 显示全部楼层

原帖由 wapwuw 于 2010-7-11 03:15 PM 发表
看了很多的教程,都说不可以设置index.aspx,即使设置成别deful.aspx也是不行的。

是default.aspx不是deful.aspx,ok?
您需要登录后才可以回帖 登录 | 注册

本版积分规则