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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content