hello,
I have configured SSI in following ways.
1. AddType text/x-server-parsed-html .shtml
Options +Includes
I have add above in httpd.conf file under <DIRECTORY> section.
2. then i have save and restart my server.
3. i have created one shtml file and add following code in it
<!--#echo "hello"-->
but its not working..........
can anyone tell me where i am wrong?
Reply ASAP.........
It's
still not working
Doesn't work full stop or you get an error in this directive message?
iI do not know if you are running Apache in your server or in your Pc under Windows. If I was to assume that it is on your server, I will recommend the the following test:
In your config file, add the following lines:
AddHandler server-parsed .html
AddHandler server-parsed .htm
Create two files:
1 - test.html
2 - include.inc
In test.html file, put the the following directive:
<!--#include virtual="include.inc" -->
In the include file, insert a line reading, say:
This is a test of SSI
(No tags, what-so-ever, just a message)
Now, call up the file test.html and see if the message of include.inc file appears as a part of the the test.html file.
Please note that before writing this reply I checked my config file, but I do not use stml extension, and only use SSI for the include directive. The way my config file is set up, it works and, therefore, I recommended the above test, to see if it will solve the problem.
Yeah, right! Or just echo an environmental variable. Like
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)