On Tuesday 11 March 2003 22:56, Richard Cunliffe wrote:

Richard,

IMHO, you have a whole set of problems, and inadequate analysis behind each. 
And the only way to sort things out is a systematic check from top to bottom.

If we start at the Apache Webserver httpd.conf.

> In the Apache httpd file the only code I have added is:
>
> -------------------------------------------------------------
> JkMount /examples ajp13
> JkMount /examples/* ajp13
>
> JkMount /jk ajp13
> JkMount /jk/* ajp13
>
> JkMount /cocoon ajp13
> JkMount /cocoon/* ajp13
> -------------------------------------------------------------

The /cocoon/ mounting will connect the Web server with Tomcat, and in the 
process /cocoon/ is stripped, and the rest is passed to Tomcat.

If you have not changed the default config of Tomcat, then Tomcat will have 
the cocoon app mounted at its /cocoon/ URL, i.e. you will need;
http://www.cunliffe.net/cocoon/cocoon/soundpool/ to reach the directory

-- o --

The changing of image, as I suggested, shows that you are not getting what you 
are seeing, i.e. the browser is caching images. My suggestion was to actually 
change the image, without changing the name, and you would see the still "old 
image".

-- o --

It is now time for you to decide what you want to do.
Do you want to use Apache Webserver as the front end? (Recommended)
Do you want Apache WS, Tomcat or Cocoon to serve the static content (WS 
recommended)?
How do you want your URL space divided?

It is then a matter of systematic configuration, from top to bottom, with 
verification of each step.

I have a pretty straight forward setup. Apache WS is the frontend, Tomcat is 
acting as a Cocoon-only container, mounted at /site/.

In httpd.conf;
JkMount /site/* worker1
JkWorkersFile /home/tomcat/conf/workers.properties
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

In /home/tomcat/conf/workers.properties

worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

Now (after restart?), make sure that you get the Tomcat greeting page when 
accessing the /site/ URL, making sure that ApacheWS -> Tomcat works.


In Tomcat's server.xml I changed the ROOT context under
<Context path="" reloadable="true" docBase="/home/cocoon/site" debug="0"/>


And in /home/cocoon/site/ there is the cocoon sitemap, and so on.


I hope this should get you on the right track.

Niclas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to