Web服务器配置为不列出此目录的内容 [英] The web server is configured to not list the contents of this directory

查看:108
本文介绍了Web服务器配置为不列出此目录的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的网站上传到smartasp.net托管,当我尝试通过URL访问我的网站时,我收到此消息:

I have uploaded my site to smartasp.net hosting and when I try to access my site by URL I receive this message :

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.



我的web.config是:


my web.config is :

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer >
<defaultDocument>
  <files>
    <add value ="addbook.aspx"/>
  </files>
</defaultDocument>
<directoryBrowse enabled ="true"/>
</system.webServer>
<configuration>
<system.web>
  <customErrors mode="Off"/>
</system.web>
</configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="Data 
Source=SQL7002.site4now.net;Initial Catalog=DB_A3BC09_MonzerKarary;User 
Id=DB_A3BC09_?????????_admin;Password=@???????????;"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
    <compilation debug="true" targetFramework="4.0"/>
</system.web>
</configuration>





如何解决这个问题?!!



我尝试过:





how do I fix this ?!!

What I have tried:

<configuration>
  <system.webServer >
    <defaultDocument>
      <files>
        <add value ="addbook.aspx"/>
      </files>
    </defaultDocument>
    <directoryBrowse enabled ="true"/>
  </system.webServer>
  <configuration>

推荐答案

如果您使用的主机不允许\支持自定义默认文档,只需创建您网站上的default.aspx页面,它会重定向到您想要的默认页面。
If the host you are using doesn't allow\support custom default documents just create a default.aspx page on your site that does a redirect to your desired default page.


Quote:

我已将我的网站上传到smartasp.net主机

I have uploaded my site to smartasp.net hosting



您必须与他们的支持人员交谈。如果有人知道你能做什么以及如何做,那就是他们。


You have to talk with their support. If someone know what you can do and how, it is them.


这篇关于Web服务器配置为不列出此目录的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆