tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vim m <vim6662...@yahoo.com>
Subject RE: Apache2.0.40 Tomcat4.1.18 Integration on Linux 7.1
Date Thu, 23 Jan 2003 19:23:36 GMT
########## Auto generated on Thu Jan 23 14:15:19 EST
2003##########

<IfModule !mod_jk.c>
  LoadModule jk_module
/usr/local/apache2/modules/mod_jk-2.0.43.so
</IfModule>

JkWorkersFile
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/conf/jk/workers.properties"
JkLogFile
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/logs/mod_jk.log"

JkLogLevel emerg



<VirtualHost thedomainname>
    ServerName thedomainname

    #################### thedomainname:/admin
####################

    # Static files 
    Alias /admin
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/../server/webapps/admin"

    <Directory
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/../server/webapps/admin">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/admin/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/admin/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /admin/j_security_check  ajp13
    JkMount /admin/*.do  ajp13
    JkMount /admin/*.jsp  ajp13

    #################### thedomainname:/webdav
####################

    # Static files 
    Alias /webdav
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/webdav"

    <Directory
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/webdav">
        Options Indexes FollowSymLinks
        DirectoryIndex index.jsp index.html index.htm 
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/webdav/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/webdav/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /webdav/*.jsp  ajp13

    #################### thedomainname:/test
####################

    # Static files 
    Alias /test
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/test"

    <Directory
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/test">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/test/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/test/META-INF/*">
        AllowOverride None
        deny from all
    </Location>
    
    JkMount /test/Test1  ajp13


    #################### thedomainname:/8
####################

    # Static files 
    Alias /8
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/8"

    <Directory
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/8">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/8/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/8/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /8/Email  ajp13

    #################### thedomainname:/examples
####################

    # Static files 
    Alias /examples
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/examples"

    <Directory
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/examples">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/examples/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/examples/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount
/examples/jsp/security/protected/j_security_check 
ajp13
    JkMount /examples/snoop  ajp13
    JkMount /examples/servlet/*  ajp13
    JkMount /examples/CompressionTest  ajp13
    JkMount /examples/*.jsp  ajp13
    JkMount /examples/servletToJsp  ajp13
    JkMount /examples/SendMailServlet  ajp13

    #################### thedomainname:/tomcat-docs
####################

    # Static files 
    Alias /tomcat-docs
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/tomcat-docs"

    <Directory
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/tomcat-docs">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/tomcat-docs/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/tomcat-docs/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /tomcat-docs/*.jsp  ajp13

    #################### thedomainname:/app
####################

    # Static files 
    Alias /app
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/app"

    <Directory
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/app">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/app/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/app/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /app/Email  ajp13
    JkMount /app/Home  ajp13
    JkMount /app/Login  ajp13

    #################### thedomainname:/app1
####################

    # Static files 
    Alias /app1
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/app1"

    <Directory
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/app1">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/app1/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/app1/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /app1/Email  ajp13
    JkMount /app1/Home  ajp13
    

    #################### thedomainname:/manager
####################

    # Static files 
    Alias /manager
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/../server/webapps/manager"

    <Directory
"/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/webapps/../server/webapps/manager">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/manager/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/manager/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /manager/html/*  ajp13
    JkMount /manager/*  ajp13
    JkMount /manager/*.jsp  ajp13
</VirtualHost>











--- "Turner, John" <JTurner@AAS.com> wrote:
> 
> What are the contents of mod_jk.conf?
> 
> John
> 
> 
> > -----Original Message-----
> > From: vim m [mailto:vim6662000@yahoo.com]
> > Sent: Thursday, January 23, 2003 2:13 PM
> > To: Tomcat Users List
> > Subject: RE: Apache2.0.40 Tomcat4.1.18 Integration
> on Linux 7.1
> > 
> > 
> > Hello again: John-I was able to start apache2.0.44
> > now. The required lib file was in a different
> > directory. Both Apache and Tomcat are running well
> as
> > stand alones now. 
> > 
> > After configuring for the mod_jk connectivity I am
> not
> > able to access tomcat via apache. I tried
> accessing
> > http://thedomainnam/examples. It says file not
> found.
> > In the error log of Apache I found this:
> > [Thu Jan 23 13:23:50 2003] [warn] Init: Session
> Cache
> > is not configured [hint: \SSLSessionCache]
> > 
> > 
> > I did the following for connecting the two:
> > 1.Put mod_jk-2.0.43 in usr/local/apache2/modules.
> > 2.Included the following in httpd.conf
> > Include
> >
>
/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14/conf/auto/mod_jk.conf
> > 3.Changed Servername="thedomainname". This was
> > actually commented out by default.
> > 4.Added the following to server.xml in
> tomcat/conf:
> > <Listener
> >
>
className="org.apache.ajp.tomcat4.config.ApacheConfig"
> >
> modJk="/usr/local/apache2/modules/mod_jk-2.0.43.so"
> />
> > <Listener
> >
>
className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > append="true" forwardAll="false"
> >
> modJk="/usr/local/apache2/modules/mod_jk-2.0.43.so"
> />
> > Changed localhost to "thedomainname".
> > 5.Got the following in workers.properties file 
> > /////////////////
> > # BEGIN workers.properties
> > #
> > # Setup for apache system
> > #
> > # (optional) make this equal to CATALINA_HOME
> >
>
workers.tomcat_home=/usr/local/tomcat/jakarta-tomcat-4.1.18-LE-jdk14
> > #
> > # (optional) make this equal to JAVA_HOME
> > workers.java_home=$(JAVA_HOME)
> > #
> > ps=/
> > worker.list=ajp13
> > 
> > # Definition for Ajp13 worker
> > #
> > worker.ajp13.port=8009
> > 
> > # change this line to match apache ServerName and
> Host
> > name in server.xml
> > worker.ajp13.host=thedomainname
> > 
> > worker.ajp13.type=ajp13
> > #
> > # END workers.properties
> > ////////////////
> > And restarted both tomcat and apache. I could get
> the
> > mod_jk.conf in the auto folder of tomcat/conf.
> > 
> > Where could I have gone wrong? Any help is
> > appreciated.
> > Thanks a lot.
> > 
> > 
> > 
> > 
> > 
> > --- "Turner, John" <JTurner@AAS.com> wrote:
> > > 
> > > I would look for the RPM for 2.0.43 and install
> > > that.  If you go back a day
> > > or two in the list archives, I posted the URL
> for a
> > > 2.0.43 RPM in response
> > > to someone else's post.  Unfortunately, I just
> don't
> > > have the time right now
> > > to search for it myself.
> > > 
> > > John
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: vim m [mailto:vim6662000@yahoo.com]
> > > > Sent: Wednesday, January 22, 2003 5:01 PM
> > > > To: Tomcat Users List
> > > > Subject: RE: Apache2.0.40 Tomcat4.1.18
> Integration
> > > on Linux 7.1
> > > > 
> > > > 
> > > > Thanks again. I downloaded httpd-2.0.44.tar.gz
> and
> > > > installed Apache.
> > > > Startup gives me this error, 
> > > > 
> > > > /usr/local/apache2/bin/httpd: error while
> loading
> > > > shared libraries: libgcc_s.so.1: cannot open
> > > shared
> > > > object file: No such file or directory
> > > > 
> > > > Where could I download this file? I did a
> google,
> > > but
> > > > could not find anything. Should I download an
> rpm
> > > for
> > > > this and build it? I am a newbie to linux and
> am
> > > still
> > > > on the learning curve.
> > > > Any help is appreciated. Thanks a lot.
> > > > 
> > > > 
> > > > 
> > > > --- "Turner, John" <JTurner@AAS.com> wrote:
> > > > > 
> > > > > Only if you have a Mac running Linux.
> > > > > 
> > > > > John
> > > > > 
> > > > > 
> > > > > > -----Original Message-----
> > > > > > From: vim m [mailto:vim6662000@yahoo.com]
> > > > > > Sent: Wednesday, January 22, 2003 4:21 PM
> > > > > > To: Tomcat Users List
> > > > > > Subject: RE: Apache2.0.40 Tomcat4.1.18
> > > Integration
> > > > > on Linux 7.1
> > > > > > 
> > > > > > 
> > > > > > Dear John: Thanks. I have one more
> question, 
> > > > > Would
> > > > > > this file be the one I should download?
> > > > > >
> httpd-2.0.43-powerpc-unknown-linux-gnu.tar.gz.
> > > > > > 
> > > > > > Thanks a lot.
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > --- "Turner, John" <JTurner@AAS.com>
> wrote:
> > > > > > > 
> > > > > > > That error is about your version of
> Apache. 
> > > You
> > > > > > > need 2.0.42 (preferably
> > > > > > > 2.0.43) minimum to use that mod_jk.so. 
> Note
> > > > > that
> > > > > > > 2.0.44 was just released
> > > > > > > but is module-compatible with 2.0.43.
> > > > > > > 
> > > > > > > If you can't upgrade your Apache, you
> will
> > > have
> > > > > to
> > > > > > > roll your own mod_jk from
> > > > > > > the connector source distribution,
> available
> > > in
> > > > > the
> > > > > > > same tree as the binary
> > > > > > > you downloaded.
> > > > > > > 
> > > > > > > As far as I know, there is no binary
> > > available
> 
=== message truncated ===


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message