Posted by on | |
tomcat 控制目錄能否顯示的設定

檔案在 $CATALINA_HOME/conf/ web.xml


[init-param]
[param-name]listings[/param-name]
[param-value]true[/param-value]
[/init-param]

true:能看見
false:不能瀏覽

====================================
任何目錄的預設或首頁, 如何設定呢??
網頁程式的 web.xml

[welcome-file-list]
[welcome-file]now_see_this.jsp[/welcome-file]
[welcome-file]page1.html[/welcome-file]
[welcome-file]index.htm[/welcome-file]
[/welcome-file-list]

將 [welcome-file] 改變指向您所選的檔案

0 意見: