#parse("manage/host/head.htm") #parse("manage/host/top.htm")
#parse("manage/host/menu.htm")
页面设置
#if($HostUser.IISVer=="6") #end
默认首页 #if($HostUser.IISVer=="6") #end #if($HostUser.IISVer=="7")
由于服务器是IIS7及以上版本,您可以手动配置web.config实现本项操作。
节点位置:configuration/system.webServer/defaultDocument/files
<add value="文件名" />
如:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
    <defaultDocument>
        <files>
            <add value="index.asp" />
            <add value="index.php" />
        </files>
    </defaultDocument>
</system.webServer>
</configuration>
添加多个默认首页则增加多条add记录。
#end
该项设置可设置网站的默认首页文件,比如设置成index.asp
那么访问http://yourdomain.com/index.asp可直接用用http://yourdomain.com访问。
404页面 #if($HostUser.IISVer=="6") #end #if($HostUser.IISVer=="7")
由于服务器是IIS7及以上版本,您可以手动配置web.config实现本项操作。
节点位置:configuration/system.webServer/httpErrors
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="404URL路径" responseMode="ExecuteURL" /> 如: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <httpErrors> <remove statusCode="404" subStatusCode="-1" /><!--移除系统默认配置--> <error statusCode="404" prefixLanguageFilePath="" path="/404.html" responseMode="ExecuteURL" /> </httpErrors> </system.webServer> </configuration> 详细配置可以了解一下iis7的web.config配置教程。
#end
该项设置可设置用户访问的网页不存在时,要显示给客户端的内容。
#parse("manage/host/foot.htm")