如何设置Arvixe ASP空间的默认文档

目前的Arvixe空间使用的是Win2008, IIS7的系统,在默认的管理界面是找不到设置默认文档的地方的。例如你的主页从default.asp开始,或者从index.asp那么应该如何设置呢?

Arvixe空间的IIS7使用了新的分布式web.config配置系统。IIS7不再拥有单一的metabase 配置储存,而将使用和ASP.NET支持的同样的web.config文件模型。在你新建每个站点的时候,系统都会默认生成3个文件夹(data, logs, wwwroot),在wwwroot下会自动生成一个web.config的文件,而我们需要设置的默认文档便可以在这里进行。

默认的配置文件如下:

<?xml version=”1.0″ encoding=”UTF-8″?>

<configuration>

<system.webServer>

<directoryBrowse enabled=”true” />

<defaultDocument>

<files>

<clear />

<add value=”Default.htm” />

<add value=”Default.asp” />

<add value=”index.htm” />

<add value=”Default.aspx” />

<add value=”index.php” />

<add value=”index.html” />

<add value=”index.pl” />

<add value=”default.html” />

</files>

</defaultDocument>

</system.webServer>

</configuration>

很明显这是一个XML文件,其中system.webServer目录为当前服务器的配置目录,如果您选择的是asp.net程序,那么请注意不要用你的web.config覆盖掉这个web.config,而是应该将这个文件改写。

更多主机交流,请访问国内最大的海外主机交流论坛:美国主机侦探论坛

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>