[ic] mod_interchange / mod_vhost_alias / FullUrl funk

Jud Harris interchange-users@lists.akopia.com
Mon Jul 2 15:44:00 2001


Grrr...  I'm very frustrated.

I'm trying to use mod_interchange with Apache in a virtual domain / multiple
catalog config.  I'm having problems.
I'm using the mod_vhost_alias setup of Apache, described below.

mod_interchange.so is sucessfully loaded into my apache config (as it
doesn't return an error when the following directives are used)

my httpd.conf contains the following, both inside and outside the
<VirtualHost _default_:80> </..> section.

<Location /store>
        SetHandler interchange-handler
        InterchangeServer /var/run/interchange/socket
</Location>
---

This directory...
drwxr-sr-x    2 interch  apache        192 Jul  2 14:21 /var/run/interchange
... contains ...
-rw-------    1 interch  apache          6 Jul  2 11:39 interchange.pid
-rw-------    1 interch  apache          0 Jul  2 11:39 mode.unix
srw-rw----    1 interch  apache          0 Jul  2 11:39 socket

...

SocketPerms 0660 is set in my interchange.cfg, and here are the two catalog
entries:

FullUrl Yes
Catalog testcat /home/testcat/www/catalogs/testcat www1.mydomain.com/store
Catalog construct /var/lib/interchange/construct
www1.myotherdomain.com/store

Note that the contruct catalog works, but the testcat doesn't.  That URL
returns a 404 Not Found page.
..

/var/www/vhosts contains domain names as symlinks pointing to each's htdocs
dir..
www.myotherdomain.com -> /home/otherdom/www/ (which contains html, logs,
cgi-bin dirs).
This part is working.

Here's the httpd.conf entry pertaining to mod_vhosts_alias

<VirtualHost _default_:80>

        <Location /store>
                SetHandler interchange-handler
                InterchangeServer /var/run/interchange/socket
        </Location>

        VirtualDocumentRoot     "/var/www/vhosts/%0/html"
        VirtualScriptAlias      "/var/www/vhosts/%0/cgi-bin"

</VirtualHost>

It's seems as though the /store is not getting picked up by the handler,
because my apache vhost_access_logs contain hits for this domain at /store -
each one returns a 404 Not Found error.

I'm at a loss.  Any input is greatly appreciated.

-Jud