I am trying to @INCLUDE a file outside the DocumentRoot of an Apache2
Virtual Host....without success, so far.
I've searched the Mail List Archive and found some posts that touch on
this, but none that address it directly.
First let me say that, yes, I know if we were running Apache on Linux I
could use symlinks and this wouldn't be a problem :) It is currently
hosted on Windows2003.
- The Apache "Alias" directive does permit my Virtual Host(s) to access
files outside the VHosts DocumentRoot.
Alias /sharedfiles/
"C:/Progra~1/Apache~1/Apache2/htdocs/ocm_includes/"
So, going to http://dcem2.brattle.harvard.edu/sharedfiles/works.html
does
serve works.html from the ocm_includes directory.
- The <@INCLUDE> Witango Meta Tag seems to prevent the WAS from including
a file outside the VHost DocumentRoot.
I presume because Apache has already passed the .tml request off to WAS
5.5 and the Alias is not resolved by WAS 5.5.
Does anyone know if this is possible?; what I might be doing wrong?
Here's what I'm doing:
1. I am pointing to: http://www.somedomain.com/somedir/hello.tml (see
this file snippet below)
2. Apache successfully hands this TML off to WAS 5.5
3. It's at this point that I fear the @INCLUDE tag cannot look beyond the
Apache DocumentRoot
(see httpd.conf snippet below)
hello.tml
--------------------------------------------------------------------------------
<@include file="/sharedfiles/ocmHeader.tml">
<br /> hello world. <br />
<@include file="/sharedfiles/ocmFooter.tml">
--------------------------------------------------------------------------------
httpd.conf snippet
--------------------------------------------------------------------------------
<VirtualHost *:80>
ServerName dcem2.brattle.harvard.edu
ServerAlias dcem2a.brattle.harvard.edu
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/extension"
</VirtualHost>
--------------------------------------------------------------------------------
Thanks,
- Matt
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf