Results 1 to 4 of 4
  1. #1

    Default How to do server-side includes on Westhost?

    I'm missing something basic here, I think.

    Contents of http://www.dawgagility.org/ssitest.html (hosted by Westhost):

    Code:
    <html>
    <head>
       <meta name="editor" content="/usr/bin/vi">
       <title>SSI test
    </title>
    </head>
    <body bgcolor="blue">
    
    <p>
    Date and time:
    <!--#echo var="DATE_LOCAL" -->
    
    <p>
    Include virtual:<br>
    <!--#include virtual="SSI/foo.shtml" -->
    
    </body>
    </html>
    Contents of http://www.dawgagility.org/SSI/foo.shtml:
    Code:
    This text included via SSI 'include virtual'
    But as you can see by clicking on http://www.dawgagility.org/ssitest.html there is no SSI processing done. The identical code works in my private account, though: http://www.panix.com/~mshaw/ssitest.html

    Is there some configuration step I'm missing? cPanel indicates that Apache should already be set up to handle .shtml.

    I also doublechecked the file permissions, and they're fine (ssitest.html is 644, SSI/ is 755, foo.shtml is 644).

    Thanks for any help....

  2. #2
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,720

    Default

    extenstion should be .shtml on the file you want to include another one on not the other way around. In other words rename ssitest.html to ssitest.shtml and foo.shtml to foo.html. Actually it really does not matter if the foo is html or shtml extension really. You can add a handler via cPanel if you want .html files to be parsed. I can't remember specifics of navigation in cPanel of the top of my head but you would set up a new handler for .html that is server-parsed.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

  3. #3

    Default

    Quote Originally Posted by wildjokerdesign View Post
    extenstion should be .shtml on the file you want to include another one on not the other way around. In other words rename ssitest.html to ssitest.shtml and foo.shtml to foo.html. Actually it really does not matter if the foo is html or shtml extension really. You can add a handler via cPanel if you want .html files to be parsed. I can't remember specifics of navigation in cPanel of the top of my head but you would set up a new handler for .html that is server-parsed.
    Ha! That did it - thanks so much.

  4. #4
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,720

    Default

    Here we go.... found the cPanel document page on adding an Apache Handler. http://docs.cpanel.net/twiki/bin/vie...ApacheHandlers
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

Posting Permissions

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