Web Hosting Talk







View Full Version : Root SSI


Anakin
11-03-2001, 05:55 PM
I have a Cobalt RaQ4 from RackShack, and wanted to know how to do something.
I want all sites on my server to be able to put an SSI includes like
<!--#INCLUDE VIRTUAL="/Ads/Ads.shtml" -->
and it call the file /Ads/Ads.shtml from the root of the server, not just their local path for their website like SSI usually does. This will be used to show an advertisement on their website, so I can just update one file to change the code. How can I do this?

JTY
11-03-2001, 07:46 PM
The simplest way I can think of would be to make symbolic link in each customer directory to the file.

Anakin
11-03-2001, 07:55 PM
How would I do that?

driverdave
11-03-2001, 09:08 PM
In /etc/httpd/conf/srm.conf add this

Alias /whatever/ /home/sites/home/web/whatever/

along with the other aliases listed.

Restart apache

now, make a directory in /home/sites/home/web/ called whatever and you will be able to access whatever from all sites on the cobalt.