I have included the mod_jk.conf-auto file in my Apache httpd.conf file. The mod_jk.conf-auto file is attached to this e-mail. I set up a context definition in server.xml like the following:
<Context path="/pnm"
docBase="webapps/pnm"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>Would I happen to need a worker or something? I'm still not sure what a worker is...
Bryan
----Original Message Follows---- From: John Turner <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Newbie here...Need help with Tomcat Date: Wed, 02 Apr 2003 08:29:08 -0500
On Wed, 02 Apr 2003 01:59:48 -0700, Bryan Richardson <[EMAIL PROTECTED]> wrote:
If I run a version of Tomcat as a standalone web server, can I access a database with it or will I need to set it up with Apache to access a database?
Tomcat facilitates database connections just fine. Apache is not needed for this.
I have been trying to attach Tomcat with Apache. I used mod_jk, and I could run the java example programs in the "examples" folder, but it would not run java programs under my own folder in "webapps". I believe I have the folder,web.xml,etc. set up right because it will run the java programs in my folder if I go directly to Tomcat via port 8080 rather than trying to run them through Apache. Has anyone had this same problem or know something that I should be doing?
We'd have to know more to help. Many people are doing this. Relevant portions of httpd.conf (not the whole thing), the Context definitions in server.xml, etc.
Someone please help if you can. Thanks. Bryan
John
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
################################################################### # Auto generated configuration. Dated: Wed Apr 02 12:41:37 MST 2003 ###################################################################
# # The following line instructs Apache to load the jk module # LoadModule jk_module modules/mod_jk.dll
JkWorkersFile "D:/Tomcat/conf/workers.properties" JkLogFile "D:/Tomcat/logs/mod_jk.log"
# # Log level to be used by mod_jk # JkLogLevel error
###################################################################
# SSL configuration #
#
# By default mod_jk is configured to collect SSL information from
# the apache environment and send it to the Tomcat workers. The
# problem is that there are many SSL solutions for Apache and as
# a result the environment variable names may change.
#
# The following (commented out) JK related SSL configureation
# can be used to customize mod_jk's SSL behaviour.
#
# Should mod_jk send SSL information to Tomact (default is On)
# JkExtractSSL Off
#
# What is the indicator for SSL (default is HTTPS)
# JkHTTPSIndicator HTTPS
#
# What is the indicator for SSL session (default is SSL_SESSION_ID)
# JkSESSIONIndicator SSL_SESSION_ID
#
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
# JkCIPHERIndicator SSL_CIPHER
#
# What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT)
# JkCERTSIndicator SSL_CLIENT_CERT
#
# #
###################################################################
# # Root context mounts for Tomcat # JkMount /*.jsp ajp12 JkMount /servlet/* ajp12
######################################################### # Auto configuration for the /examples context starts. #########################################################
#
# The following line makes apache aware of the location of the /examples context
#
Alias /examples "D:/Tomcat/webapps/examples"
<Directory "D:/Tomcat/webapps/examples">
Options Indexes FollowSymLinks
</Directory>
# # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /examples/servlet/* ajp12 JkMount /examples/*.jsp ajp12
# # The following line prohibits users from directly accessing WEB-INF # <Location "/examples/WEB-INF/"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "D:/Tomcat/webapps/examples/WEB-INF/"> AllowOverride None deny from all </Directory>
# # The following line prohibits users from directly accessing META-INF # <Location "/examples/META-INF/"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "D:/Tomcat/webapps/examples/META-INF/"> AllowOverride None deny from all </Directory>
####################################################### # Auto configuration for the /examples context ends. #######################################################
######################################################### # Auto configuration for the /admin context starts. #########################################################
#
# The following line makes apache aware of the location of the /admin context
#
Alias /admin "D:/Tomcat/webapps/admin"
<Directory "D:/Tomcat/webapps/admin">
Options Indexes FollowSymLinks
</Directory>
# # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /admin/servlet/* ajp12 JkMount /admin/*.jsp ajp12
# # The following line prohibits users from directly accessing WEB-INF # <Location "/admin/WEB-INF/"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "D:/Tomcat/webapps/admin/WEB-INF/"> AllowOverride None deny from all </Directory>
# # The following line prohibits users from directly accessing META-INF # <Location "/admin/META-INF/"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "D:/Tomcat/webapps/admin/META-INF/"> AllowOverride None deny from all </Directory>
####################################################### # Auto configuration for the /admin context ends. #######################################################
######################################################### # Auto configuration for the /pnm context starts. #########################################################
# # The following line makes apache aware of the location of the /pnm context # Alias /pnm "D:/Tomcat/webapps/pnm" <Directory "D:/Tomcat/webapps/pnm"> Options Indexes FollowSymLinks </Directory>
# # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /pnm/servlet/* ajp12 JkMount /pnm/*.jsp ajp12
# # The following line prohibits users from directly accessing WEB-INF # <Location "/pnm/WEB-INF/"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "D:/Tomcat/webapps/pnm/WEB-INF/"> AllowOverride None deny from all </Directory>
# # The following line prohibits users from directly accessing META-INF # <Location "/pnm/META-INF/"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "D:/Tomcat/webapps/pnm/META-INF/"> AllowOverride None deny from all </Directory>
####################################################### # Auto configuration for the /pnm context ends. #######################################################
######################################################### # Auto configuration for the /test context starts. #########################################################
# # The following line makes apache aware of the location of the /test context # Alias /test "D:/Tomcat/webapps/test" <Directory "D:/Tomcat/webapps/test"> Options Indexes FollowSymLinks </Directory>
# # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /test/servlet/* ajp12 JkMount /test/*.jsp ajp12
# # The following line prohibits users from directly accessing WEB-INF # <Location "/test/WEB-INF/"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "D:/Tomcat/webapps/test/WEB-INF/"> AllowOverride None deny from all </Directory>
# # The following line prohibits users from directly accessing META-INF # <Location "/test/META-INF/"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "D:/Tomcat/webapps/test/META-INF/"> AllowOverride None deny from all </Directory>
####################################################### # Auto configuration for the /test context ends. #######################################################
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
