You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Marc G. Fournier" <sc...@hub.org> on 2002/10/11 16:30:30 UTC
So close .. I think?
Okay, as suggested, I replaced mod_webapp with mod_jk2, and if I go to
http://domain now, it comes up with an error to the effect of:
Cocoon 2 - Resource not found
In my httpd.conf file, I have:
# Configure mod_jk
#
JkWorkersFile /usr/local/jakarta-tomcat4.1.10/conf/jk/workers.properties
JkLogFile /var/www/mod_jk.log
JkLogLevel info
where workers.properties just contains:
===============
workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10
workers.java_home=/usr/local/jdk1.3.1
ps=/
worker.list=ajp12, ajp13
# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
================
Now, in my VirtualHost directive for the domain, I have:
JkMount / ajp13
which is obviously wrong ... but what should it be?
Basically, what I want, is for:
http://domain to "connect" to http://domain:8009/cocoon/domain
and use the sub-sitemap.xmap file properly ... but this is all new to me
:(
Again, if there is a good how to on this that I should be reading, please
point me to it ...
Thanks ...
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: So close .. I think?
Posted by Lajos Moczar <lm...@galatea.com>.
What about if you try http://domain/?
You might need a pipeline in the main sitemap to catch a URL that ends
in "domain" without the trailing slash:
<map:match pattern="domain">
<map:redirect-to uri="domain/"/>
</map:match>
<map:match pattern="domain/**">
<map:mount uri-prefix="domain" src="domain/" check-reload="yes"/>
</map:match>
Cheers,
Lajos
Marc G. Fournier wrote:
> Okay, as suggested, I replaced mod_webapp with mod_jk2, and if I go to
> http://domain now, it comes up with an error to the effect of:
>
> Cocoon 2 - Resource not found
>
> In my httpd.conf file, I have:
>
> # Configure mod_jk
> #
> JkWorkersFile /usr/local/jakarta-tomcat4.1.10/conf/jk/workers.properties
> JkLogFile /var/www/mod_jk.log
> JkLogLevel info
>
> where workers.properties just contains:
>
> ===============
> workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10
> workers.java_home=/usr/local/jdk1.3.1
> ps=/
> worker.list=ajp12, ajp13
>
> # Definition for Ajp13 worker
> #
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> ================
>
> Now, in my VirtualHost directive for the domain, I have:
>
> JkMount / ajp13
>
> which is obviously wrong ... but what should it be?
>
> Basically, what I want, is for:
>
> http://domain to "connect" to http://domain:8009/cocoon/domain
>
> and use the sub-sitemap.xmap file properly ... but this is all new to me
> :(
>
> Again, if there is a good how to on this that I should be reading, please
> point me to it ...
>
> Thanks ...
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
--
galatea.com
Cocoon training, consulting & support
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: So close .. I think?
Posted by Yury Mikhienko <yu...@mobicomk.donpac.ru>.
On Fri, 11 Oct 2002 11:30:30 -0300 (ADT)
"Marc G. Fournier" <sc...@hub.org> wrote:
>
> Okay, as suggested, I replaced mod_webapp with mod_jk2, and if I go to
> http://domain now, it comes up with an error to the effect of:
>
> Cocoon 2 - Resource not found
>
> In my httpd.conf file, I have:
>
> # Configure mod_jk
> #
> JkWorkersFile /usr/local/jakarta-tomcat4.1.10/conf/jk/workers.properties
> JkLogFile /var/www/mod_jk.log
> JkLogLevel info
>
> where workers.properties just contains:
>
> ===============
> workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10
> workers.java_home=/usr/local/jdk1.3.1
> ps=/
> worker.list=ajp12, ajp13
>
> # Definition for Ajp13 worker
> #
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> ================
>
> Now, in my VirtualHost directive for the domain, I have:
>
> JkMount / ajp13
if your cocoon context in webapps/cocoon you just to insert into VirtualHost directive following lines:
JkMount /cocoon ajp13
JkMount /cocoon/* ajp13
and go to http://domain/cocoon/...
>
> which is obviously wrong ... but what should it be?
>
> Basically, what I want, is for:
>
> http://domain to "connect" to http://domain:8009/cocoon/domain
>
> and use the sub-sitemap.xmap file properly ... but this is all new to me
> :(
>
> Again, if there is a good how to on this that I should be reading, please
> point me to it ...
>
> Thanks ...
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
--
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: So close .. I think?
Posted by Geoff Howard <co...@yahoo.com>.
I'd leave the mod_jk setup you have as is, and use
host matchers in cocoon to handle requests from there,
assuming that at some point you'll want www.domain.com
to be handled differently than foo.domain.com, or
www.otherdomain.com.
I'm using the following setup with success:
1) (You may not want to do this step) I changed the
Tomcat Root Context in server.xml following the
instructions found at:
http://xml.apache.org/cocoon/faq/faq-configure-environment.html#faq-1
2) Add the WildCardHostMatcher (or regexp version) by
adding a declaration similar to the following in your
root sitemap:
<map:matcher name="host"
src="org.apache.cocoon.matching.WildcardHostMatcher"
logger="sitemap.matcher.host"/>
3) Mount your application in a sub sitemap, matched on
the host from the root sitemap. I'm currently using:
<map:match type="host" pattern="*.com:8080">
<map:mount check-reload="yes" src="{1}/"
uri-prefix=""/>
</map:match>
Note, I'm not (yet) using mod_jk to pass requests from
port 80. If you use that, you'll need to get rid of
the :8080 in the above example, and if you skip step
one above you may need to play with the value of
uri-prefix. I haven't thought that through very
carefully for your situation. I can say that the
above three steps exactly are working in my case.
When you resolve this with mod_jk can you be sure to
summarize this to the list?
Also, in your example below you mention accessing
http://domain:8009/cocoon/domain - wouldn't this be
:8080 to the outside world? I'm pretty sure 8009 is
just what apache uses internally to pass requests on,
though it's been a while and this has gotten fuzzy in
my mind.
Geoff Howard
--- "Marc G. Fournier" <sc...@hub.org> wrote:
>
> Okay, as suggested, I replaced mod_webapp with
> mod_jk2, and if I go to
> http://domain now, it comes up with an error to the
> effect of:
>
> Cocoon 2 - Resource not found
>
> In my httpd.conf file, I have:
>
> # Configure mod_jk
> #
> JkWorkersFile
>
/usr/local/jakarta-tomcat4.1.10/conf/jk/workers.properties
> JkLogFile /var/www/mod_jk.log
> JkLogLevel info
>
> where workers.properties just contains:
>
> ===============
> workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10
> workers.java_home=/usr/local/jdk1.3.1
> ps=/
> worker.list=ajp12, ajp13
>
> # Definition for Ajp13 worker
> #
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> ================
>
> Now, in my VirtualHost directive for the domain, I
> have:
>
> JkMount / ajp13
>
> which is obviously wrong ... but what should it be?
>
> Basically, what I want, is for:
>
> http://domain to "connect" to
> http://domain:8009/cocoon/domain
>
> and use the sub-sitemap.xmap file properly ... but
> this is all new to me
> :(
>
> Again, if there is a good how to on this that I
> should be reading, please
> point me to it ...
>
> Thanks ...
>
>
>
>
---------------------------------------------------------------------
> Please check that your question has not already
> been answered in the
> FAQ before posting.
> <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
>
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>