|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
mod_jk + tomcat 5.5 and apache2.2I am configuring mod_jk to connect apache2.2 and tomcat5.5. But it seems apache is not connecting to tomcat.
If I run http://example.com:8080/jsp-examples/ or http://example.com:7690/jsp-examples/ [here 8080 is tomcat port and 7690 is apache port] But if I use--- http://example.com/jsp-examples/ It gives error 'Unable to connect' and as per I know with mod_jk it supposed to run without port no. Here are my files: 1. workers.properties workers.tomcat_home=/content/tomcat workers.java_home=/usr/java ps=/ worker.list=default worker.default.port=8009 worker.default.host=localhost worker.default.type=ajp13 worker.default.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=default 2. apache2.conf # Include the virtual host configurations: Include /etc/apache2/sites-enabled/ Include /content/apache-tomcat-5.5.26/conf/auto/mod_jk.conf # Where to find workers.properties JkWorkersFile /etc/apache2/workers.properties # Where to put jk(check for permission) JkLogFile /var/log/apache2/mod_jk.log # Set the jk log level JkLogLevel debug # Select the log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format JkRequestLogFormat "%w %V %T" 3. sites-enabled/default NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost ############## ServerName localhost JkMount /* default JkMount /gdfr_home/* default JkMount /jsp-examples/*.jsp default Jkmount /servlet-examples/* default DocumentRoot /content/subversion <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /content/subversion> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On <Location /inform> DAV svn SVNPath "/content/subversion/inform" </Location> </VirtualHost> 4. server.xml <Server port="8005" shutdown="SHUTDOWN"> <!-- Comment these entries out to disable JMX MBeans support used for the administration web application --> <Listener className="org.apache.jk.config.ApacheConfig" modJk="/usr/lib/apache2/modules/mod_jk.so" /> <Listener className="org.apache.catalina.core.AprLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/> <!-- Global JNDI resources --> <GlobalNamingResources> <!-- 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" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <!-- Define the Tomcat Stand-Alone Service --> <Service name="Catalina"> <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> <!-- Define a SSL HTTP/1.1 Connector on port 8443 --> <!-- <Connector port="8443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" emptySessionPath="true" /> <Connector port="8082" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" acceptCount="100" connectionTimeout="20000" proxyPort="80" disableUploadTimeout="true" /> <!-- Define the top level container in our container hierarchy --> <Engine name="Catalina" defaultHost="localhost"> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Listener className="org.apache.jk.config.ApacheConfig" modJk="/usr/lib/apache2/modules/mod_jk.so" workersConfig="/etc/apache2/workers.properties" jkWorker="default" append="true" forwardAll="false"/> </Host> </Engine> </Service> </Server> Dies any one help me and tell where is the problem. Thanks ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: mod_jk + tomcat 5.5 and apache2.2On Thu, May 8, 2008 6:21 am, mamta chaudhary wrote:
> I am configuring mod_jk to connect apache2.2 and tomcat5.5. But it seems > apache is not connecting to tomcat. > If I run > > http://example.com:8080/jsp-examples/ or > http://example.com:7690/jsp-examples/ [here 8080 is tomcat port and > 7690 is apache port] > > But if I use--- http://example.com/jsp-examples/ It gives > error 'Unable to connect' and as per I know with mod_jk it supposed to > run without port no. If your apache is listening on port 7690 and you can reach the jsp-examples application with this port, you are done. You can't reach the jsp-examples without the port number, since your apache does not listen on port 80, but on port 7690 as you stated above. The port number 80 gets inserted automatically into your URL http://example.com/... Bye Felix > > > Here are my files: > > 1. workers.properties > > workers.tomcat_home=/content/tomcat > workers.java_home=/usr/java > ps=/ > worker.list=default > > worker.default.port=8009 > worker.default.host=localhost > worker.default.type=ajp13 > worker.default.lbfactor=1 > > worker.loadbalancer.type=lb > worker.loadbalancer.balanced_workers=default > > 2. apache2.conf > > # Include the virtual host configurations: > Include /etc/apache2/sites-enabled/ > > Include /content/apache-tomcat-5.5.26/conf/auto/mod_jk.conf > > # Where to find workers.properties > JkWorkersFile /etc/apache2/workers.properties > > # Where to put jk(check for permission) > JkLogFile /var/log/apache2/mod_jk.log > > # Set the jk log level > JkLogLevel debug > > # Select the log format > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > > # JkOptions indicate to send SSL KEY SIZE, > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > > # JkRequestLogFormat set the request format > JkRequestLogFormat "%w %V %T" > > > 3. sites-enabled/default > > NameVirtualHost * > <VirtualHost *> > ServerAdmin webmaster@localhost > > ############## > ServerName localhost > JkMount /* default > JkMount /gdfr_home/* default > JkMount /jsp-examples/*.jsp default > Jkmount /servlet-examples/* default > > DocumentRoot /content/subversion > <Directory /> > Options FollowSymLinks > AllowOverride All > </Directory> > > <Directory /content/subversion> > Options Indexes FollowSymLinks MultiViews > AllowOverride None > Order allow,deny > allow from all > > </Directory> > > ErrorLog /var/log/apache2/error.log > > LogLevel warn > > CustomLog /var/log/apache2/access.log combined > ServerSignature On > > <Location /inform> > DAV svn > SVNPath "/content/subversion/inform" > </Location> > > </VirtualHost> > > > 4. server.xml > > <Server port="8005" shutdown="SHUTDOWN"> > > <!-- Comment these entries out to disable JMX MBeans support used for > the > administration web application --> > <Listener className="org.apache.jk.config.ApacheConfig" > modJk="/usr/lib/apache2/modules/mod_jk.so" /> > <Listener className="org.apache.catalina.core.AprLifecycleListener" /> > <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" > /> > <Listener > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" > /> > <Listener > className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/> > > <!-- Global JNDI resources --> > <GlobalNamingResources> > > <!-- 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" > factory="org.apache.catalina.users.MemoryUserDatabaseFactory" > pathname="conf/tomcat-users.xml" /> > > </GlobalNamingResources> > > <!-- Define the Tomcat Stand-Alone Service --> > <Service name="Catalina"> > > <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> > <Connector port="8080" maxHttpHeaderSize="8192" > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" redirectPort="8443" acceptCount="100" > connectionTimeout="20000" disableUploadTimeout="true" /> > > > <!-- Define a SSL HTTP/1.1 Connector on port 8443 --> > <!-- > <Connector port="8443" maxHttpHeaderSize="8192" > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" disableUploadTimeout="true" > acceptCount="100" scheme="https" secure="true" > clientAuth="false" sslProtocol="TLS" /> > --> > > <!-- Define an AJP 1.3 Connector on port 8009 --> > <Connector port="8009" > enableLookups="false" redirectPort="8443" > protocol="AJP/1.3" emptySessionPath="true" /> > > > <Connector port="8082" > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" acceptCount="100" > connectionTimeout="20000" > proxyPort="80" disableUploadTimeout="true" /> > > <!-- Define the top level container in our container hierarchy --> > <Engine name="Catalina" defaultHost="localhost"> > > <Host name="localhost" appBase="webapps" > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > > <Listener className="org.apache.jk.config.ApacheConfig" > modJk="/usr/lib/apache2/modules/mod_jk.so" > workersConfig="/etc/apache2/workers.properties" > jkWorker="default" append="true" > forwardAll="false"/> > > > </Host> > > </Engine> > > </Service> > > </Server> > > > > Dies any one help me and tell where is the problem. > > Thanks > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@... > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
|
| Free Forum Powered by Nabble | Forum Help |