[Ilugc] Problem regarding connecting httpd and tomcat...

  • From: karthik.natarajan@xxxxxxxxx (Karthik K N)
  • Date: Wed Jan 25 21:13:14 2006


Hello everybody,
For the past two days i have been trying to connect httpd-2.2.0 with 
apache-tomcat-5.5.14 using jakarta-tomcat-connectors-1.2.15-src...

But i faced a lot of problems in connecting it..First of all this mod_jk 
connector..i built it and here is the log that i got in the webserver

[Wed Jan 25 21:01:36 2006] [notice] Apache/2.2.0 (Unix) mod_jk/1.2.15 
configured -- resuming normal operations

that went fine ...

in the server.xml file of tomcat i added this line

<Listener className="org.apache.jk.config.ApacheConfig" 
modJk="/usr/local/apache2/modules/mod_jk.so" />

.....Then in httpd .conf i added the following .

LoadModule jk_module modules/mod_jk.so
    # Where to find workers.properties
    JkWorkersFile conf/workers.properties
    # Where to put jk logs
    JkLogFile     logs/mod_jk.log
    # Set the jk log level [debug/error/info]
    JkLogLevel    info
    # 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"
    # Send servlet for context /examples to worker named worker1
    JkMount  /servlets-examples/servlet/* default
    # Send JSPs  for context /examples to worker named worker1
    JkMount  /jsp-examples/*.jsp default

and gave the alias as
 Alias /jsp-examples 
"/home/karthik/apache-tomcat-5.5.14/webapps/jsp-examples/"
                                                                                

    Alias /servlets-examples 
"/home/karthik/apache-tomcat-5.5.14/webapps/servlets-examples/"

i also gave the directory permission as

<Directory "/home/karthik/apache-tomcat-5.5.14/webapps/jsp-examples/">
        Options FollowSymLinks
        AllowOverride None
        Allow from all
</Directory>

and finally gave this

Include /home/karthik/apache-tomcat-5.5.14/conf/auto/mod_jk.conf

finally when i started the server with

http://10.116.21.215/jsp-examples/

i get this error


  Forbidden

You don't have permission to access /jsp-examples/ on this server.

Additionally, a 403 Forbidden error was encountered while trying to use 
an ErrorDocument to handle the request.

Did i miss something ...











The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Other related posts: