OpenRasta有一个默认的Index.html页面?

时间:2012-03-15 13:45:57

标签: openrasta

我正在开发一个将使用OpenRasta提供JSON数据的网站,然后使用think JavaScript客户端来执行所有交互。

我们要做的是在根目录下提供index.html页面。目前我们可以通过baseuri / index.html进入页面,但只是去baseuri不会带我们到那里。

默认情况下,有没有办法让OR提供/index.html?

如果重要,我正在使用OR3测试版。

修改

首先,我回到了OR 2.1。仅仅因为我已经使用它并想消除任何不熟悉。

其次,我的Web.Config文件中有以下内容:

<defaultDocument enabled="true">
      <files>
        <clear />
        <add value="index.html" />
      </files>
    </defaultDocument>

我得到了404.0

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Detailed Error Information
Module  ManagedPipelineHandler
Notification    ExecuteRequestHandler
Handler OpenRasta
Error Code  0x00000000
Requested URL   http://localhost:80/
Physical Path   D:\deployments
Logon Method    Anonymous
Logon User  Anonymous
Failed Request Tracing Log Directory    C:\inetpub\logs\FailedReqLogFiles

0 个答案:

没有答案
相关问题