Hello
RedHat AS 4.0
TeamSite 6.7.1
We are using SSIs in our html content. Currently the paths to the includes are configured relative to where the HTML file exists (include virtual="../_includes/_header.html" -->). We'd like to make this path relative to the docroot (include virtual="/www/_includes/_header.html" -->). However when we make the path relative from the docroot, in the error_log we get errors that the file doesn't exist b/c it is not looking for the file from the workarea docroot, but from the DocumentRoot directive in httpd.conf.
[Mon Mar 26 09:51:41 2007] [error] [client 10.251.0.57] File does not exist: /var/www/html/test, referer:
http://interwovendev/iw-cc/command/iw.ccpro.list_directory?vpath=//interwovendev/default/main/test/WORKAREA/www[Mon Mar 26 09:51:41 2007] [error] [client 10.251.0.57] unable to include "/test/include.ssi" in parsed file /iwmnt/default/main/test/WORKAREA/www/test.html, referer:
http://interwovendev/iw-cc/command/iw.ccpro.list_directory?vpath=//interwovendev/default/main/test/WORKAREA/wwwIn our httpd.conf file, indeed our docroot is set to DocumentRoot "/var/www/html". We have created the necessary alias for /iwmnt
Alias /iw-mount/ "/iwmnt/"
Directory "/iwmnt">
EnableSendfile Off
XBitHack on
Options All
AllowOverride None
Order allow,deny
Allow from all
/Directory>
In the iw.cfg file we have set up the docroot
[iwproxy_remap]
Test_Site=/main/test
[Test_Site]
_docroot=/
We've also tried to play around with the mod_rewrite but it is a bit confusing. For one the errors in the RewriteLog don't correspond to the error_log. It actually looks like the branch and wa are being found...
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (2) init rewrite engine with requested uri /iw-mount/default/main/test/WORKAREA/www/test.html
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (3) applying pattern '.' to uri '/iw-mount/default/main/test/WORKAREA/www/test.html'
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (5) map lookup OK: map=urlencode key=/iw-mount/default/main/test/WORKAREA/www/test.html -> val=/iw-mount/default/main/test/WORKAREA/www/test.html
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (5) setting env variable 'url' to '/iw-mount/default/main/test/WORKAREA/www/test.html'
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (3) applying pattern '.' to uri '/iw-mount/default/main/test/WORKAREA/www/test.html'
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (4) RewriteCond: input='' pattern='.' => not-matched
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (3) applying pattern '.' to uri '/iw-mount/default/main/test/WORKAREA/www/test.html'
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (4) RewriteCond: input='false' pattern='=false' => matched
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (3) applying pattern '.' to uri '/iw-mount/default/main/test/WORKAREA/www/test.html'
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (4) RewriteCond: input='/iw-mount/default/main/test/WORKAREA/www/test.html' pattern='^(/iw-mount/.*/(((WORKAREA|EDITION)/[^/]+)|STAGING))/' => matched
10.251.0.57 - - [26/Mar/2007:14:37:15 --0700] [interwovendev/sid#9031e78][rid#93276f0/initial] (5) setting env variable 'iwarea' to '/iw-mount/default/main/test/WORKAREA/www'
Does anyone have an experience in dealing with these issues? Is this an issue that can be resolved with mod_rewrite or is it more simple, can this be fixed with proxy statements in iw.cfg?
Thanks
Rob