httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthick P" <pkarth...@premiertechnologygroup.com>
Subject RE: [users@httpd] mod_jk issue
Date Thu, 08 May 2008 20:53:15 GMT
Mamta,

 

If apache is listening on 7690 where you have configured mod_jk, you cannot
access the page without port number. In your case, if you are able to access
http://localhost:7690/jsp-examples/, it means that the mod_jk configuration
is also working as expected!

 

 

 

________________________________

 

The information contained in this message may be CONFIDENTIAL and is for the
intended addressee only.  Any unauthorized use, dissemination of the
information, or copying of this message is prohibited.  If you are not the
intended addressee, please notify the sender immediately and delete this
message. 

________________________________

 

-----Original Message-----
From: Mamta Singh [mailto:mamta2.singh@gmail.com] 
Sent: Thursday, May 08, 2008 10:24 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] mod_jk issue

 

Yes my apache is listening on port 7690 not on 80.  Actually I have

both apache 1.3 and 2.2; apache 1.3 is on 80 and apache 2.2 is on

7690.

 

With my application I am using apache 2.2 which is set on 7690.

 

 

On Thu, May 8, 2008 at 12:18 PM, Eqbal Z <eqbalz@gmail.com> wrote:

> Is your apache listening on port 80? I saw you said apache port was 7690.

> 

> 

> 

> 

> On Wed, May 7, 2008 at 10:19 PM, Mamta Singh <mamta2.singh@gmail.com>
wrote:

> 

> > Thankx for quick reply.  Though I have posted my problem on TC mailing

> > list, I am posting here too in case someone got the missing point and

> > help me in finding where is problem. .

> >

> > 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>

> >

> >

> >

> >

> >

> >

> > On Wed, May 7, 2008 at 9:06 PM, Johnny Kewl <john@kewlstuff.co.za>
wrote:

> > >

> > >

>
---------------------------------------------------------------------------

> > >  HARBOR: http://coolharbor.100free.com/index.htm

> > >  The most powerful application server on earth.

> > >  The only real POJO Application Server.

> > >  Making the Java dream come true.

> > >

>
---------------------------------------------------------------------------

> > >  ----- Original Message ----- From: "Mamta Singh"

> <mamta2.singh@gmail.com>

> > >  To: <users@httpd.apache.org>

> > >  Sent: Thursday, May 08, 2008 12:40 AM

> > >  Subject: [users@httpd] mod_jk issue

> > >

> > >

> > >

> > >

> > > > Hello everyone!!

> > > > I have configured mod_jk, tomcat 5.5 and apache2.2 and it seems

> > > > working fine if I run

> > > >

> > >

> > >  These addresses are just talking to tomcat directly

> > >

> > >

> > >

> > > > http://localhost:8080/jsp-examples/   or

> > > > http://localhost:7690/jsp-examples/   [here 8080 is tomcat port and

> > > > 7690 is apache port]

> > > >

> > > >

> > >

> > >  The mapping is wrong somewhere Apache is not connecting to Tomcat

> > >  I imagine http://localhost does work... ie just talking to Apache

> > >

> > >

> > >

> > > > But if I use---       http://localhost/jsp-examples/         It
gives

> > > > error 'Unable to connect' and as per I know with mod_jk it supposed
to

> > > > run without port no.

> > > >

> > >

> > >  Yes true... Apache is not seeing TC

> > >

> > >  JK config can get a little tricky... suggest you join the TC mailing

> list

> > > and post your actual configuration.

> > >

> > >

> > > >

> > > > Does anyone has idea why I am getting this error.

> > > >

> > > > Any help would be great

> > > >

> > > > Thanks

> > > >

> > > >
---------------------------------------------------------------------

> > > > The official User-To-User support forum of the Apache HTTP Server

> Project.

> > > > See <URL:http://httpd.apache.org/userslist.html> for more info.

> > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org

> > > >  "   from the digest: users-digest-unsubscribe@httpd.apache.org

> > > > For additional commands, e-mail: users-help@httpd.apache.org

> > > >

> > > >

> > > >

> > >

> > >

> > >  ---------------------------------------------------------------------

> > >  The official User-To-User support forum of the Apache HTTP Server

> Project.

> > >  See <URL:http://httpd.apache.org/userslist.html> for more info.

> > >  To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org

> > >   "   from the digest: users-digest-unsubscribe@httpd.apache.org

> > >  For additional commands, e-mail: users-help@httpd.apache.org

> > >

> > >

> >

> > ---------------------------------------------------------------------

> > The official User-To-User support forum of the Apache HTTP Server
Project.

> > See <URL:http://httpd.apache.org/userslist.html> for more info.

> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org

> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org

> > For additional commands, e-mail: users-help@httpd.apache.org

> >

> >

> 

> 

 

---------------------------------------------------------------------

The official User-To-User support forum of the Apache HTTP Server Project.

See <URL:http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org

   "   from the digest: users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message