in reply to Calling a script onto an HTML doc.

To test and see if you're webserver
is including SSI, try the following:
Put some SSI commands in test.shtml.
Then try and view test.shtml in a browser.
You should see responses from the echos.
<title>SSI Test-Do i have Server-Side Include?</title> My IP Address is:<!--#echo var="REMOTE_ADDR"--> This page is:<!--#echo var="DOCUMENT_NAME"-->
SSI can be pretty draining so apache leaves it out by
default. Here's what a ssi-enabled www folder should
look like in apache httpd.conf file.
<Directory /home/user/domain/www/> Options Indexes Includes AddType text/html .shtml AddHandler server-parsed .shtml </Directory>
this works on apache 1.3.26
P.S. As you can see with apache, ssi pages don't have to be called .shtml.
To be really be sure whether SSI is running AND you are
connecting to it properly, check your apache conf file.
Apache SSI Help

Replies are listed 'Best First'.
Re: Re: Calling a script onto an HTML doc.
by valdez (Monsignor) on Oct 24, 2002 at 13:09 UTC

    It would be safer to use

    Options +IncludesNOEXEC

    This way you disable execution of local commands, as explained in Apache SSI documentation:

    Server-side includes are permitted, but the #exec command and #exec CGI are disabled. It is still possible to #include virtual CGI scripts from ScriptAliase'd directories.

    Ciao, Valerio

      Thanks for the help! I was able to configure it, but it wouldn't take effect. Finally got fed up, and shut down the computer. Came on the next morning, and it worked... no brainer, I know. Forgot to reboot. Thanks again for the help!