WOAdaptor and Apache VirtualHosts problem

[email protected]
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
I have a need to run WO in the following configuration:

Apache->VirtualHost *:5000->WOApplication1
      ->VirtualHost *:6000->WOApplication2

Apache 1.3.28 is running under Redhat 9 and WO 5.2.2 is running on a different machine.

I started testing with a single virtual host before setting up several:

----------------------------------------------------------------------------
WebObjectsConfig file:///path/to/adapter/woadaptor.xml 10
<VirtualHost *:5000>
DocumentRoot /theDocumentRootForApp1
WebObjectsLog logs/woapp1.log Debug
WebObjectsAlias /apps/WebObjects
WebObjectsDocumentRoot /theDocumentRootForApp1
</VirtualHost>
----------------------------------------------------------------------------

This works but there are 3 problems:
1. As you can see WebObjectsConfig file is sitting outside the virtual hosts so it's
'global'.  I want set the config in each virtual host (have woadapter.xml file for
each virtual host) but it doesn't work.  I want to stick with the file method (dynamic
didn't work for some reason).

2. Since the WebObjectsConfig file is 'global', I had to put all applications in
the woadaptor.xml file.  So you can get to app2 through port 5000 which should be
dedicated to app1.

3. The WebObjectsLog file isn't written to disk.  I tried touch /tmp/logWebObjects
but that doesn't work.

So how do I make the WebObjectsConfig file per virtual host?  I want it to look like
this:

<VirtualHost *:5000>
DocumentRoot /theDocumentRootForApp1
WebObjectsLog logs/woapp1.log Debug
WebObjectsAlias /apps/WebObjects
WebObjectsDocumentRoot /theDocumentRootForApp1
WebObjectsConfig file:///path/to/adapter/woadaptor1.xml 10
</VirtualHost>
<VirtualHost *:6000>
DocumentRoot /theDocumentRootForApp2
WebObjectsLog logs/woapp2.log Debug
WebObjectsAlias /apps/WebObjects
WebObjectsDocumentRoot /theDocumentRootForApp2
WebObjectsConfig file:///path/to/adapter/woadaptor2.xml 10
</VirtualHost>

but it doesn't work!!

PS using file:/// with WebObjectsConfig works b/c it's a URL... that took me awhile
to figure out b/c I didn't see it documented anywhere.

_______________________________________________
WebObjects-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-admin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.