Robert Schmid wrote:
> 
> At 8/3/2001 08:53 AM +1000, you wrote:
Robert,

> I have strange habits in site design I'd like to be able to swap an
> index.html for index.xml.  I've got a better understanding of things now,
> but I'm not sure why there is an enforced segregation of files.  Since most
> of my xml files will be in a subdirectory, I'm going to try putting a
> symlink in the webapps directory and see if I can work things out that
> way.  Otherwise I assume I have to run separate instances of tomcat for
> different virtual servers?

ok - fair enough... ASAIK there is no enfored segregation of files, just
convention.  What you are describing seems achievable to me, although
I've never done it.  I'm sorry, but I've actually missed what the
original problem was.

Assuming you fix the host names up then a request for index.html should
be served happily by apache.  A request for index.xml should be passed
off to tomcat via ajp13, and then assuming you've got something that
handles that at tomcat it should receive the request.  An advantage of
the way you have things set up is that localhost:8080 should be the same
as localhost (I think)... so I would start at localhost:8080 and check
everything works (sorry, at www.raptor.net:8080 or whatever).  then look
at apache.  

A question though.  Am I right in thinking that you are serving xml
dynamically with a xslt stylesheet (pull based publishing), and then
also trying to use pro-active push publishing to pump the xml through
the same xslt into an index.html file (and I'm sure also an index.wml
file somewhere too)?  If so, sounds damn cool (o:

let me know if its not working and I'll think some more about it.

cheesr
dim

> 
> >cheers
> >dim
> >
> >Robert Schmid wrote:
> > >
> > > I swear I've read the documentation!  I have Virtual Hosts Contexts
> > defined;
> > >
> > > Server.xml
> > >
> > >      <Host
> > > name="www.raptor.net">
> > >      <Context path="" docBase="/home/net/foobar/htdocs"
> > > debug="0"/>
> > >      </Host>
> > >
> > >      <Host
> > > name="www.blackgryphongraphics.com">
> > >      <Context path="" docBase="/home/com/barfoo/htdocs" debug="0"/>
> > >      </Host>
> > >
> > > httpd.conf:
> > >
> > > <VirtualHost 209.134.140.42>
> > >      ServerName www.foobar.net
> > >      JkMount /*.jsp ajp13
> > >      JkMount /*.xml ajp13
> > >      JkMount /servlet/* ajp13
> > >      AddType text/xml .xml
> > >      DocumentRoot /home/net/foobar/htdocs
> > > ...
> > >      <Directory "/home/net/foobar/htdocs/">
> > >          Options All
> > >          AllowOverride Authconfig
> > >      </Directory>
> > >
> > > I want to be able to put xml files and jsp in the main directory or at
> > > least in a directory  entirely controlled by foobar.
> > >
> > > Is the docBase relative to $TOMCAT_HOME or is it an absolute path?
> > > What is appBase?  Does this work in Tomcat 3.x or only in 4.x?
> > >
> > > Do I need to run separate instances of Tomcat for each virtual host?
> > >
> > > Do I have to have a webapps directory in each Virtual Host. How about a
> > > WEB-INF and a web.xml directory in each directory?
> > >
> > > The documentation seems out of date especially the links regarding web.xml.
> > >
> > > Help is greatly appreciated!

Reply via email to