tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Neigaard <neiga...@mobilethink.dk>
Subject How can I serve jsp files in my htdocs dir?
Date Tue, 26 Sep 2000 15:06:12 GMT
How do I get Tomcat to serve all jsp files placed in htdocs (and subdirs)?
Do I have to place all jsp files under the Tomcat dir (hope not)?

I have the following tomcat.conf:

FILE BEGIN-----------------------------------------------
############################################################################
###
#                     Apache JServ Configuration File
#
############################################################################
###

# Note: this file should be appended or included into your httpd.conf

# Tell Apache on win32 to load the Apache JServ communication module
# LoadModule jserv_module modules/ApacheModuleJServ.dll

# Tell Apache on Unix to load the Apache JServ communication module
# For shared object builds only!!!
# @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so
LoadModule jserv_module libexec/mod_jserv.so

<IfModule mod_jserv.c>
# Do not edit!
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice


### Change if you run tomcat on a different host
ApJServDefaultHost localhost
ApJServDefaultPort 8007


#################### All jsp files will go to tomcat ####################
ApJServMount default /root

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

############################## Context mapping - all requests go to tomcat

ApJServMount /examples /root

############################## Context mapping - you need to "deploy"
# ( copy or ln -s ) the context into htdocs
##

# ApJservMount /CONTEXT/servlet  /root
# <Location /CONTEXT/WEB-INF/ >
#      AllowOverride None
#      deny from all
# </Location>


</IfModule>
FILE END-------------------------------------------------

Med venlig hilsen/Best regards
Søren Neigaard
-------------------------------
MobileThink A/S
Phone: (+45)87345648
Udviklingsparken
Sønderhøj 46
8260 Viby J
Denmark



Mime
View raw message