JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Application Server  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Tomcat 4.1.24 如何防止目錄被瀏覽? [精華]
zrjian





發文: 80
積分: 0
於 2003-07-07 14:51 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
大家好
當在瀏覽器使用如下列 URL 時,

http://172.19.3.100:8080/checkoutlogin/

會看到整個目錄(checkoutlogin)的全部檔案及子目錄;但試圖讀取

http://172.19.3.100:8080/checkoutlogin/WEB-INF/

目錄時,卻無法看到 WEB-INF 目錄架構.

請教如何才能防止全部目錄及檔案無法顥示在瀏覽器呢?
Thanks!


reply to postreply to post
NetBeans IDE 6.1 Beta
iReport-2.0.5
作者 Re:Tomcat 4.1.24 如何防止目錄被瀏覽? [Re:zrjian]
jazzpaddy





發文: 6
積分: 0
於 2003-07-07 14:59 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在 tomcat安裝目錄/conf/底下,找到web.xml檔案,尋找

<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>

把true改成false就好囉


reply to postreply to post
作者 Re:Tomcat 4.1.24 如何防止目錄被瀏覽? [Re:zrjian]
zrjian





發文: 80
積分: 0
於 2003-07-09 13:26 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
謝謝你!
經設定後,終於可以防止目錄被瀏覽了.


reply to postreply to post
作者 Re:Tomcat 4.1.24 如何防止目錄被瀏覽? [Re:jazzpaddy]
oraxinu





發文: 6
積分: 0
於 2003-07-23 11:07 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
那請問一下哦!如果小弟是用 Orion 而想要有目錄瀏覽的功能?該如何設定呢?因為小弟實在不知從那下手去設定這個功能!

jazzpaddy wrote:
在 tomcat安裝目錄/conf/底下,找到web.xml檔案,尋找

<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>

把true改成false就好囉


reply to postreply to post
作者 Re:Tomcat 4.1.24 如何防止目錄被瀏覽? [Re:oraxinu]
Forth



版主

發文: 676
積分: 8
於 2003-07-23 11:11 user profilesend a private message to usersend email to Forthreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
修改config/global-web-application.xml,在<orion-web-app>裡加上
directory-browsing="allow",如果只要讓某個website能被瀏覽,
就到application-deployments裡把orion-web.xml找出來改


reply to postreply to post
作者 Re:Tomcat 4.1.24 如何防止目錄被瀏覽? [Re:zrjian]
Roy





發文: 31
積分: 2
於 2003-07-23 15:33 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
印象中好像有一個笨方法..在那個目錄裡丟個xx.html的檔就可以了..

reply to postreply to post
作者 Re:Tomcat 4.1.24 如何防止目錄被瀏覽? [Re:Roy]
genjen62





發文: 6
積分: 0
於 2005-03-12 17:23 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不好意思... 我還有一個問題... 如果我的 tomcat 設定了三個 Host,
我只想關掉其中的兩個 Host 不讓人瀏覽目錄, 第三個則可以瀏覽目錄,
或是說, 我在一個 Host 裡面有ㄧ個目錄想給人瀏覽, 其他的則都關掉...
可以做到嗎?


reply to postreply to post
Welcome to AKIRA's Blog
» JWorld@TW »  Application Server

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8