Forum Moderators: phranque

Message Too Old, No Replies

How can you do a SSI across multiple domains on same server?

         

MrSpeed

2:44 pm on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello,
I wanted to use an include file across multiple domains on the same server (Unix).

I tried both ways below but with no luck.
<!--#include virtual="/www/htdocs/somedomain/footer.html"-->
<!--#include file="/www/htdocs/somedomain/footer.html"-->

On our IIS boxes we can define virtual domains on each site to point to the same directory on the NTFS.
For example we can do includes like:
<!--#include virtual="/common/footer.html"-->
which is really a directory at the same level as all the domains. We just define /common/ as C:\inetpub\wwwroot\common\

Is there a similar way to do this on a Unix Box?

I have a feeling I'll have to use a perl or PHP script to suck up the file to display it.

rcjordan

2:47 pm on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



symlinks worked for me

[webmasterworld.com...]

Stretch

3:19 pm on May 14, 2003 (gmt 0)

10+ Year Member



Apache aliases maybe?

[httpd.apache.org...]

MrSpeed

4:16 pm on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Works!
I used an Alias directive inside the <VirtualHost> directive.

I get scared by anything I need to do at the command prompt but ok with tweaking text files.