tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "v.siguier" <>
Subject Re: Apache + Tomcat + mod_jk
Date Thu, 31 Jul 2003 07:26:06 GMT
Following are my config files (my new application is called geode):

httpd.conf :
ServerRoot "C:/Apache/Apache2"
PidFile logs/
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild  0
Listen 8081
LoadModule access_module modules/
LoadModule actions_module modules/
LoadModule alias_module modules/
LoadModule asis_module modules/
LoadModule auth_module modules/
LoadModule autoindex_module modules/
LoadModule cgi_module modules/
LoadModule dir_module modules/
LoadModule env_module modules/
LoadModule imap_module modules/
LoadModule include_module modules/
LoadModule isapi_module modules/
LoadModule log_config_module modules/
LoadModule mime_module modules/
LoadModule negotiation_module modules/
LoadModule setenvif_module modules/
LoadModule userdir_module modules/
LoadModule jk_module modules/mod_jk-2.0.43.dll
UseCanonicalName Off
DocumentRoot "C:/Apache/Apache2/htdocs"
<Directory />
    Options FollowSymLinks
    AllowOverride None
<Directory "C:/Apache/Apache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
UserDir "My Documents/My Website"
DirectoryIndex index.html index.html.var
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
TypesConfig conf/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
HostnameLookups Off
ServerTokens Full
ServerSignature On
Alias /icons/ "C:/Apache/Apache2/icons/"
<Directory "C:/Apache/Apache2/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "C:/Apache/Apache2/manual$1"

<Directory "C:/Apache/Apache2/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all

    <Files *.html>
        SetHandler type-map

    SetEnvIf Request_URI ^/manual/de/ prefer-language=de
    SetEnvIf Request_URI ^/manual/en/ prefer-language=en
    SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr
    SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja
    SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko
    SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru
    RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
ScriptAlias /cgi-bin/ "C:/Apache/Apache2/cgi-bin/"
<Directory "C:/Apache/Apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
IndexOptions FancyIndexing VersionSort
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddType application/x-tar .tgz
AddType image/x-icon .ico
AddHandler type-map var
<IfModule mod_ssl.c>
    Include conf/ssl.conf
Include c:/jakarta-tomcat-4-1-24/conf/auto/mod_jk.conf

server.xml :
<Server port="8005" shutdown="SHUTDOWN" debug="0">
	<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" modJk="c:/apache/Apache2/modules/mod_jk-2.0.43.dll"
        <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" descriptors="/com/fnac/geode/mbeans/mbean-descriptor.xml"
debug="0" jsr77Names="false"/>
  	<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" debug="0"/>

    		<!-- Test entry for demonstration purposes -->
    		<Environment name="simpleValue" type="java.lang.Integer" value="30"/>

    		<!-- Editable user database that can also be used by
         	UserDatabaseRealm to authenticate users -->
    		<Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"></Resource>
    		<ResourceParams name="UserDatabase">
		<Resource name="jdbc/RealmDatasource" type="javax.sql.DataSource" scope="Shareable"/>
		<ResourceParams name="jdbc/RealmDatasource">

  	<!-- Define the Tomcat Stand-Alone Service -->
  	<Service name="Tomcat-Standalone">
    		<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    		<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               	port="8080" minProcessors="5" maxProcessors="75"
               	enableLookups="true" redirectPort="8443"
               	acceptCount="100" debug="0" connectionTimeout="20000"
               	useURIValidationHack="false" disableUploadTimeout="true" />

    		<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    		<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               	port="8009" minProcessors="5" maxProcessors="75"
               	enableLookups="true" redirectPort="8443"
               	acceptCount="10" debug="0" connectionTimeout="0"

    		<!-- Define the top level container in our container hierarchy -->
    		<Engine name="Standalone" defaultHost="localhost" debug="0">      

      			<!-- Global logger unless overridden at lower levels -->
      			<Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log."
suffix=".txt" timestamp="true"/>      

      			<!-- This Realm uses the UserDatabase configured in the global JNDI
           		resources under the key "UserDatabase".  Any edits
           		that are performed against this UserDatabase are immediately
           		available for use by the Realm.  -->
      			<Realm className="org.apache.catalina.realm.UserDatabaseRealm" debug="0" resourceName="UserDatabase"/>
      			<Realm className="org.apache.catalina.realm.DataSourceRealm" debug="0" dataSourceName="jdbc/RealmDatasource"
userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles"


      			<!-- Define the default virtual host -->
      			<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true">
      				<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
forwardAll="false" modJk="c:/apache/Apache2/modules/mod_jk-2.0.43.dll" />        
        			<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" 
prefix="localhost_log." suffix=".txt" timestamp="true"/>

			        <Context path="/geode" docBase="geode" debug="0" reloadable="true">
			        	<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_geode_log."

tomcat/conf/jk/ :
# Definition for Ajp13 worker

Thanks to take time to consider my problem.

> Hi -
> I try to avoid free individual support.  If you post your questions and 
> your config specifics to the list, someone will help you, and then at 
> least it will be in the archives for everyone else instead of just your 
> InBox and mine.
> John
> v.siguier wrote:
> > Dear John,
> > 
> > All I do to configure Apache with Tomcat thanks to mod_jk is from your document
at (NT platform)... is there a mail address where I can forward
you all config files (httpd.conf, server.xml...) ?
> > 
> > Regards
> > 
> > 
> > 
> > 
> >>or 3) dispensing with the mod_jk.conf method and modifying httpd.conf 
> >>manually to work in your environment.
> >>
> >>John
> >>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Faites un voeu et puis Voila ! 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message