Why my Apache Server Side Include (SSI) is not working?




+ Reply to Thread
Results 1 to 7 of 7

Thread: Why my Apache Server Side Include (SSI) is not working?

  1. #1
    Meer is offline Senior Member
    Join Date
    Sep 2010
    Posts
    179
    Feedback Score
    0

    Why my Apache Server Side Include (SSI) is not working?

    Q. I would like to use Server Side Include (SSI) from my html pages. But it is not working for VirtualHost. How do I configure Apache Server Side Include?
    A. From Aapache site, "SSI (Server Side Includes) are directives that are placed in HTML pages, and evaluated on the server while the pages are being served. They let you add dynamically generated content to an existing HTML page, without having to serve the entire page via a CGI program, or other dynamic technology".
    Make sure you have following configuration directive/line in your .htaccess or httpd.conf file:
    vi /etc/httpd/httpd.conf
    OR
    vi .htaccess
    Add following directive:
    Options +Includes
    Above directive (Options +Includes) tells Apache that you want to permit files to be parsed for SSI directives.
    Next, make sure Apache knows which files should be parsed using SSI.
    AddType text/html .shtml
    AddHandler server-parsed .shtml
    Now test your configuration by adding any one of the following SSI directive:
    $ vi test.shtml
    Append any one of the following SSI directive:
    <!--#echo var="DATE_LOCAL" -->
    OR
    <!--include file="counter.cgi"-->

  2. #2
    hauk is offline Junior Member
    Join Date
    Mar 2011
    Posts
    1
    Feedback Score
    0
    + REP!!! thanks man

  3. #3
    albeejim is offline Junior Member
    Join Date
    Apr 2011
    Posts
    4
    Feedback Score
    0
    thank u alot

  4. #4
    Ramb007 is offline Junior Member
    Join Date
    Feb 2011
    Posts
    1
    Feedback Score
    0
    + REP!!! thanks man

  5. #5
    Chuckie19 is offline Junior Member
    Join Date
    Mar 2011
    Posts
    1
    Feedback Score
    0
    gr8 thanks

  6. #6
    lina121 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    1
    Feedback Score
    0
    Cheers dude

  7. #7
    movegoer is offline Junior Member
    Join Date
    Mar 2011
    Posts
    1
    Feedback Score
    0
    Great tut

+ Reply to Thread

Visitors found this page by searching for:

apache ssi not working

freebsd apache ssi not working

apache server side includes

how to make server side includes work for html

how do i check to see if ssi is on my web server

ssi apache freebsd

my ssi includes links not working

why my apache server is not working

httpd.conf working for SSi

SSI apache not evaluation

ssi include httpd.conf not working

apache file includes not working

apache include ssi is not working

ssi shtml test page

how to check server side includes is working

apache ssi

how I check ssi is working or not

apache2 freebsd htaccess not working

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts