httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mamta Singh" <mamta2.si...@gmail.com>
Subject [users@httpd] mod_jk + apache 2.2 problem
Date Thu, 27 Mar 2008 15:50:10 GMT
Hello!!

Sorry for my earlier incomplete question. Actually I am a newbie and now
totally messed up with apache and tomcat. Let me try to explain the whole
scenario.


I have apache 2.2, tomcat 5.5 installed on  Debian linux.  Now I am trying
to configure mod_jk to connect tomcat and apache.
I did following configurations in different files:

1. apache2.conf

Include /etc/apache2/sites-enabled/
Include /content/apache-tomcat-5.5.26/conf/auto/mod_jk.conf
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

2. server.xml

     <Connector port="8009"
               enableLookups="false" redirectPort="8443"
         protocol="AJP/1.3" emptySessionPath="true" />

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

3. ../apache2/sites-available/default

NameVirtualHost *
<VirtualHost *>
    ServerAdmin webmaster@localhost

    ServerName localhost
    JkMount /* default
    JkMount /*.jsp default
    Jkmount /*/servlet/* default

    RewriteEngine on
    RewriteLog /var/log/apache2/server.rewrite.txt
    RewriteLogLevel 2


    DocumentRoot /content/subversion
    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>
    <Directory /content/subversion>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
        # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right
place
                #RedirectMatch ^/$ /apache2-default/
    </Directory>
</VirtualHost>

4. worker.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


Now, according to mod_jk principle now I should be able to run apache as
http://localhost without mentioning the port. ex:
http://localhost:7690<http://localhost:80>like this if my apache's
listening port is 7690.

Now here is my problem I am not able to run apache server without mentioning
the port. Could any one help me.

I have gone through almost all google  articles , but didn't find solution.

Thanks

Mime
View raw message