Apache Server Side Include (SSI) not working
Issue
- Display the local times on web using SSI.
-
Index.html file had correct SSI directives but the output was not correct.
<HTML> <BODY BGCOLOR="#FFFFFF"> The time now is <!--#config timefmt="%H:%M %p %Z" --> <!--#echo var="DATE_LOCAL" --></p> </BODY> </HTML>
Expected output for the above code
The time now is Wednesday, 02-Feb-2011 15:59:54 NZDT"
Output received
The time now is
Environment
- Red Hat Enterprise Linux,All versions.
- Apache
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.