Enabling SSI

Seth Dimbert s.dimbert at fhmr.com
Wed Apr 17 18:39:15 CDT 2002


Joe, your code didn't work either. :( But, again, I can see the include statement in the doc 
source. Does that indicate that the server is not parsing?

-SD
-----Original Message-----
From: Joe Brouhard, MCP [mailto:jbrouhard at centurytel.net]
Sent: Wednesday, April 17, 2002 1:34 PM
To: s.dimbert at fhmr.com
Cc: kclug at kclug.org
Subject: RE: Enabling SSI

> Nontheless, my .shtml page isn't showing the results of the command,
> 
> <!--#include virtual="/var/www/cgi-bin/news/news.txt" -->
> 

Having worked with SSI's, loks like your line up there is incorrect.

You trying to get.. Say.. Index.shtml to run from /var/www/htdocs/ ?

If so, the virtual include should look something like this:

<!--#include virtual="cgi-bin/news/news.txt" -->

Reason why is because Apache doesn't recognize the /var/www directory from the web interface, but 
in PHP it does.  CGI and SHTML don't work in that vasion, at least that's the way I was looking at 
it.. Someone correct me if I'm wrong

Try the command I put up, and see if it works... It ought to, since it worked for me before :)

Hope this helps, man..

Joe Brouhard
Web Designer - Used CGI, now migrating to PHP :-)
jbrouhard at centurytel.net




More information about the Kclug mailing list