Results 1 to 7 of 7
  1. #1

    * SSI / .shtml files not being parsed?

    hey there everyone,

    I've used the latest apachetoolbox to compile apache (+php etc) and I also included mod_include to actually use server side includes within .shtml files. Apache itself works fine, so does php, but for some reason... the SSI-commands in .shtml files aren't executed.. but appear in the source code of the delivered sites... so basically they ain't working.


    the httpd.conf does include the following though:

    AddType text/html .shtml
    AddHandler server-parsed .shtml


    sooo what might be the reason that .shtml files "don't work" ?


    cheers & thanks,
    -joerg

  2. #2
    Join Date
    Jun 2002
    Posts
    189
    If you got PHP and using includes why save as .SHTML
    I have always saved as .php even if include is only thing "php" about the whole page... This works perfect for me...

  3. #3
    Join Date
    Dec 2000
    Location
    Leesburg, VA
    Posts
    3,205

    Re: SSI / .shtml files not being parsed?

    Originally posted by gafami

    I've used the latest apachetoolbox to compile apache (+php etc) and I also included mod_include to actually use server side includes within .shtml files. Apache itself works fine, so does php, but for some reason... the SSI-commands in .shtml files aren't executed.. but appear in the source code of the delivered sites... so basically they ain't working.

    What is the command you are trying to execute?

  4. #4
    mm well any kind.. e.g.

    <!--#echo var="HTTP_REFERER" -->


    :\

  5. #5
    Join Date
    Jul 2001
    Location
    Indianapolis, IN
    Posts
    537
    You'll also need "Options +Includes" just search for "Options" in httpd.conf.... if it's already set to "ALL" don't worry about it, but if not toss in Includes.

    -neil
    neil MCITP, VCP

  6. #6
    Originally posted by neil
    You'll also need "Options +Includes" just search for "Options" in httpd.conf.... if it's already set to "ALL" don't worry about it, but if not toss in Includes.

    -neil
    woohooo!! hehe thanks... it worked


    cheers,
    -jb

  7. #7
    Join Date
    Jul 2001
    Location
    Indianapolis, IN
    Posts
    537
    awsome, good to hear! The apache docs include some pretty good ssi help (as far as tags go) the one for 1.3 is at http://httpd.apache.org/docs/howto/ssi.html
    neil MCITP, VCP

Posting Permissions

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