BUT, if I try to call from another domain on the same server, for example:
<!--#include virtual="/www/html/domain2/includes/globalheader.txt" -->
I get an error trying to process this directive
I'm pretty sure the path is right, it's the same as the one used for ftp. I've tried setting permissions (but the include files were in the public area anyway), and with/without the leading "/" ...what else have I missed?
Xoc, I assume you are referring to symbollic links.
rcjordan,
Symbollic links will work. From within document root directory of the domain calling the ssi create a symbollic link. Note that the symbollic link directory will need to be a different name to includes.
ln -s /www/html/domain2/includes/ include
---------------------------
Another way is to use an Alias directive inside the <VirtualHost> directive.
For example
<VirtualHost domain1.com>
ServerName domain1.com
DocumentRoot /www/html/domain1
.....
.....
Alias /include /www/html/domain2/includes
</VirtualHost>
To call the ssi from other domain you will need to use
<!--#include virtual="/include/globalheader.txt" -->
<!--#include virtual="/www/html/domain2/includes/globalheader.shtml" -->
could this be it??
------------
I hate to even say this, but do you have the file names correct? siteheader.txt vs. globalheader.txt ??
For those reading along at home, here's the tutorial I used [hotwired.lycos.com] to figure out what the WebmasterWorld *nix-heads were talking about.