Hi all,
How do I debug a SSI HTML page? How do I know if my server is executing
mySSI? I have done the following according to the documentation.
1) I have check the httpd.conf file, the following settings are set
accordingly:
# To use server-parsed HTML files
AddType text/html .shtml
AddHandler server-parsed .shtml
2) My SHTML file (place in /usr/HTTPServer/htdocs) is as follow:
<HTML>
<HEAD>
<TITLE>Date Test</TITLE>
</HEAD>
<BODY>
The date is:
<!--#exec cmd = "date" -->
</BODY>
</HTML>
-- the file has the x-bit set for all groups
With 1) and 2) I still could not get it to work. So a .htaccess file is
place in /usr/HTTPServer/htdocs
3) The content of the .htaccess file is as follows:
<Directory "/usr/HTTPServer/htdocs">
Options +ExecCGI
</Directory>
With 1), 2) and 3) the SHTML still does not work the way I want it to be.
Did I miss out anything in the configurations or code, anybody has similar
experience before? Please help.
------------
More details
------------
The line '<!--#exec cmd = "date" -->' can be seen in the page source, and
there is no error message. "date" is the unix command to display the current
date. Does that implies that the IBM HTTP Server (Apache build) is not
parsing the shtml page at all?
Actually I am trying to insert a dynamic table into a static web page by
using Server Side Include to call a Perl program. The Perl program work fine
on its own, but nothing happens when I call it through SSI. Which is why I
am using the date command to troubleshoot the problem.
Does anyone has the similar problem before?
Actually I also notice that my Perl program does not display image file at
all, even if I have this statement in the Perl program print "Content-type:
text/html\n\n";
Thank you,
Keng Boon