Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: tomcat4.04 +apache with mod_webapp


Message #1 by "Anders Wong" <andersw@p...> on Fri, 6 Sep 2002 13:22:35 +0800
hi there...

    I wanna ask that how can I disable the directory content when I use tomcat4 with apache with webapp

I have tried to do it in Apache (httpd.conf)

like this....

<Directory "/home/jspuser/filefolder">
        Options None
        AllowOverride None
        Order allow,deny
        Deny from all
</Directory>

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c

<IfModule mod_webapp.c>
 WebAppConnection conn warp my.domain.com:8008
 WebAppDeploy /home/jspuser/filefolder conn /diy
</IfModule>

Everything is working fine for my JSP app,



but I couldn't control the application content properly

when I type http://my.domain.com/diy/ (not http://my.domain.com/diy, which is ok forward to my tomcat port 8008)

it just pop up my Directory List...

anyone has suggestion pls..... 



      Directory Listing For /  
      Filename Size Last Modified 
         css/   Tue, 03 Sep 2002 02:53:07 GMT 
         datafile/   Tue, 03 Sep 2002 02:53:07 GMT 
         dev.profile 0.2 kb Tue, 03 Sep 2002 03:35:26 GMT 
         images/   Tue, 03 Sep 2002 02:53:08 GMT 
         java_src/   Tue, 03 Sep 2002 02:53:29 GMT 
         jsp/   Tue, 03 Sep 2002 02:53:37 GMT 
         log/   Fri, 06 Sep 2002 02:13:51 GMT 
         template/   Tue, 03 Sep 2002 02:53:37 GMT 
        
      Apache Tomcat/4.0.4 





Thank you in Advance...

Best Regards,
Anders



  Return to Index