Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ssi problem apache 2

Discussion in 'EasyApache' started by mahinder, Sep 19, 2009.

  1. mahinder

    mahinder Well-Known Member

    Joined:
    Jun 12, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    matrix
    guys, recently we upgraded apache 1.3 to apache 2 and it broke some ssi pages. ssi was no longer working on some pages. After tons of investigation I found that apache 2.0 expects ssi in different syntax

    apache 2.0 expect SSI to be written like this

    apache 2.0
    <!--#include virtual="header.txt" -->

    where as apache 1.3 use to parse SSI like this

    <!--# include virtual="header.txt" -->

    Please note space between #include is now gone in apache 2.0.

    this page describes solution

    Re: "missing directive name in parsed document"

    i hope this will help some one some day. do reply in case it helps you :)
    you can fix all pages in users folder with this comand

    just got users public_html folder and run this command

    find -name "*.htm*" -exec replace '<!--# include' '<!--#include' -- {} \;

    this will replace error in all pages.
     
  2. MattCurry

    MattCurry Well-Known Member

    Joined:
    Aug 18, 2009
    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Houston, Tx
    SSI Problem

    Hello,

    Thank you very much for your help, if you have any info or questions please feel free to ask.

    Thank you,
    Matthew Curry
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice