如果导航到目录,如何在默认情况下为resin.html提供树脂? (相当于Apache中的DirectoryIndex)

时间:2022-10-05 20:30:05

Is it possible to configure Resin to serve static files such that navigating to e.g. http://localhost:8888/foo/bar/ will serve the file foo/bar/index.html (without performing a redirect)? I can't find the answer in the Resin docs, though I might be looking in the wrong place.

是否可以将Resin配置为提供静态文件,以便导航到例如http:// localhost:8888 / foo / bar /将提供文件foo / bar / index.html(不执行重定向)?我在树脂文档中找不到答案,尽管我可能在错误的地方找工作。

The equivalent in Apache would be the DirectoryIndex directive.

Apache中的等价物是DirectoryIndex指令。

2 个解决方案

#1


Maybe I don't get the question, but welcome-file-list seems to do just that?

也许我没有得到问题,但欢迎文件列表似乎只是这样做?

#2


It looks like the welcome-file-list tag is used to specify this. See http://caucho.com/resin/doc/webapp-tags.xtp#welcome-file-list

看起来像welcome-file-list标签用于指定它。请参阅http://caucho.com/resin/doc/webapp-tags.xtp#welcome-file-list

#1


Maybe I don't get the question, but welcome-file-list seems to do just that?

也许我没有得到问题,但欢迎文件列表似乎只是这样做?

#2


It looks like the welcome-file-list tag is used to specify this. See http://caucho.com/resin/doc/webapp-tags.xtp#welcome-file-list

看起来像welcome-file-list标签用于指定它。请参阅http://caucho.com/resin/doc/webapp-tags.xtp#welcome-file-list