Apache Server Side Include (SSI) not working

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.