Hello!
 I've been having some difficulty configuring Apache
and Tomcat to make them work together.  This is the
scenario:
 Apache came installed with the Solaris 8.0 server
we've got. The configuration file is at
/etc/apache/httpd.conf
And the binaries are at /usr/apache/bin/
Apache is listening to port 80.

We downloaded Tomcat to get servlet support.  It's
installed at /usr/tomcat/
Tomcat is listening to 8007.

Both are installed on the same host.

>From what I've read in the configuration manual that
comes with Tomcat, this is what I've understood:
 a) Apache shall receive all static page requests.
 b) If Apache receives a request for a servlet, it
will tell Tomcat at port 8007 to handle it.

I want that my web pages access the servlets throuh
the URL: http://my.foo.com/servlet/ServletName
And my.foo.com is configured as a virtual host in the
same machine.

I've done all that the manual says, like writing a
file named say foo.conf

Alias / /path/to/main/page
ApJServDefaultPort 8007
ApJServMount /servlet ajpv12://localhost:8007

and in httpd.conf
Include /usr/tomcat/conf/foo.conf

But I've had no luck whatsoever!

Can anyone with a lot more experience tell me how to
do this.  Here's a summary of what I'd like to do:

Main site is http://neo.foo.com
The site that will serve the servlets is
http://my.foo.com and I want to access the servlets
with the prefix http://my.foo.com/servlet/SomeServlet

All my web pages' links that refer to servlet are in
the form of:
 <form action="/servlet/FooServlet">   or
 <A HREF="/servlet/FooServlet">

The index.htm file for my.foo.com is at
/export/home/myfoo/public_html

The servlet files are at
/export/home/myfoo/public_html/servlet

httpd.conf contains the directives for virtual hosting
(think its in the form of <VIRTUALHOST
255.255.255.255:port>) which directs requests for
my.foo.com to the specified directory above.

There you have it.  It's simple and all but I've tried
doing it just like the manual says with no success.
Can anyone that has done it help me.  Or send me the
configuration files for your site (with directory
names suppressed and host address suppressed of
course!).  I'll be thankful for any help.

Thank you!

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to