tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yousef Shemisa" <yshem...@netunderdogs.com>
Subject Re: Apache Virt host problem. 3 days at it now!
Date Sat, 29 Jun 2002 02:05:40 GMT
If your NameVirtualHost directive is configured properly ....
You will need to do two things differently:

1.) You indicated that you set the directives as
 [JkMount /* ajp13]
 [JkMount /servelet/* ajp13]
This is the correct syntax but the parameters need to be set to reflect you
environment as defined in your server.xml file for Tomcat. You should use
the following directive for JKMount, replacing the values in brackets with
your values for your Tomcat Context(s) and without the brackets of course:
JkMount [name_of_my_app_context_from_server.xml] * ajp13
JkMount [name_of_my_app_context_2_from_server.xml] * ajp13
JkMount [name_of_my_app_context_3_from_server.xml] * ajp13


2.) You will also need to define an "alias" (using the alias directive in
httpd.conf ) for each context listed in JkMount above, that resides outside
the Apache document root, as defined in your httpd.conf. I is also important
to note that when using the alias directive, that [/mydirectory] will NOT
map to both [/mydirectory] AND [/mydirectory/]. You will need to define an
alias for both cases.

HTH.

---
Yousef Shemisa
650-365-9704 ext 12
http://www.netunderdogs.com
Menlo Park, CA

~Savin' the Web Doggie Style~
We GUARANTEE our Web Development will exceed your expectations.
----- Original Message -----
From: "Mark Hutchinson" <markinfrance@hotmail.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Friday, June 28, 2002 2:52 PM
Subject: Apache Virt host problem. 3 days at it now!


>
> I would greatly appreciate any help that anyone can offer.  I have been at
> this for about 3 days and have read just about every thing on the net.
This
> should be working.
>
> Anyway, I have apache and tomcat 4.03.  I can access tomcat and all the
> examples fine on my ip:8080/examples/ and all the tests work.  I can also
> access apache on prot 80 no problem.  Now just getting them to
connect.....
> I want to use a virtual host in apache and have that content directory be
> able to use jsp pages.
>
> When I access the virtual host, if get the tomcat-apache 404 page:
> ------------------------------
> Apache Tomcat/4.0.4 - HTTP Status 404 -
> /longdistance.3web.com/english/test.jsp
>
> type Status report
>
> message /longdistance.3web.com/english/test.jsp
>
> description The requested resource
(/longdistance.3web.com/english/test.jsp)
> is not available.
>
> -----------------------------------
>
>
> In my httpd.conf:
>
> I load the jk_mod.so, workers file, jklog file,
> JkMount /* ajp13
> JkMount /servelet/* ajp13
>
> and then a standard virtual host section.  I specify:
> NameVirtualHost 192.168.0.1:80  (not the real IP) its a second IP bound to
> the machine (Linux RedHat 7.3)
> and then a Virtual host )  When I go to the ip, that's when I get the 404
> error.
>
> Here is what I get for mod_jk.log when I access the virtual host:
>
> ----------------------------------------------------------------
>
> Fri Jun 28 15:36:35 2002]  [jk_uri_worker_map.c (447)]: Into
> jk_uri_worker_map_t::map_uri_to_worker
> [Fri Jun 28 15:36:35 2002]  [jk_uri_worker_map.c (464)]: Attempting to map
> URI '/english/signup/splash.jsp'
> [Fri Jun 28 15:36:35 2002]  [jk_uri_worker_map.c (529)]:
> jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->
*.jsp
> [Fri Jun 28 15:36:35 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name
> ajp13
> [Fri Jun 28 15:36:35 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
> done  found a worker
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (1352)]: Into
> jk_worker_t::get_endpoint
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (1075)]: Into
> jk_endpoint_t::service
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (280)]: Into
> ajp_marshal_into_msgb
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (413)]:
ajp_marshal_into_msgb -
> Done
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (612)]: sending to ajp13 #483
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (853)]: ajp_send_request 2:
> request body to send 0 - request body to resend 0
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (698)]: received from ajp13
#31
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (461)]:
ajp_unmarshal_response:
> status = 404
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (466)]:
ajp_unmarshal_response:
> Number of headers is = 1
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (506)]:
ajp_unmarshal_response:
> Header[0] [Content-Type] = [text/html]
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (698)]: received from ajp13
> #655
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (698)]: received from ajp13
#2
> [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (1307)]: Into
> jk_endpoint_t::done
>
>
> ------------------------------
>
> And I have attached my server.xml
>
> ---------------------------------------------
>
> and here is my workers file:
>
> # Setup for Solaris system
> #
> workers.tomcat_home=/usr/local/tomcat4
> workers.java_home=/usr/java/j2se
> ps=/
> worker.list=ajp12, ajp13
>
> # Definition for Ajp13 worker
> #
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>


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


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


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