Forum Moderators: phranque

Message Too Old, No Replies

Problems with ssi

         

flycast

4:27 pm on Feb 13, 2005 (gmt 0)

10+ Year Member



I am trying to configure Apache 1.3 to do ssi's.
I have added the following lines to my hhtpd.conf file and restarted my server:


Options +Includes

AddType text/html .shtm
AddHandler server-parsed .shtm

AddType text/html .shtml
AddHandler server-parsed .shtml



My shtml file looks like this:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>old.shtml</title>
</head>

<body>
<p>This is old.shtml </p>
<hr>
<p>This is the server side include:</p>
<!--#include virtual="ssi.html" -->
<!--#echo var="DATE_LOCAL" -->
<hr>
<p>This is a embedded php tag:</p>
<?PHP phpinfo();?>
</body>
</html>



When I do this neither of the ssi's execute.

I have read the Apache manual and have confirmed that mod_include is there with this line:



AddModule mod_include.c

Any ideas?

jdMorgan

6:19 pm on Feb 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does this work if you remove the php stuff? We've had several threads here on WebmasterWorld concerning not being able to run both PHP and SSI.

Jim

flycast

6:36 pm on Feb 13, 2005 (gmt 0)

10+ Year Member



No, Didn't help.
Also, I have a blank .htaccess file.