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] 改變指向您所選的檔案
底下為HTML的相關META資訊,可幫助SEARCH ENGIN或PROXY的搜尋機會!!
==========================================================
[HTML]
[HEAD]
[TITLE]網站主題[/title]
[META HTTP-EQUIV="Content-Language" CONTENT="ZH-TW"]
[META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Big5"]
[META NAME="KEYWORDS" CONTENT="關鍵字1,關鍵字2,關鍵字3,關鍵字4,關鍵字5"]
[META NAME="DESCRIPTION" CONTENT="網站說明"]
[/head]
==============================================================
==========================================================
[HTML]
[HEAD]
[TITLE]網站主題[/title]
[META HTTP-EQUIV="Content-Language" CONTENT="ZH-TW"]
[META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Big5"]
[META NAME="KEYWORDS" CONTENT="關鍵字1,關鍵字2,關鍵字3,關鍵字4,關鍵字5"]
[META NAME="DESCRIPTION" CONTENT="網站說明"]
[/head]
==============================================================
訂閱:
文章 (Atom)