Results 1 to 7 of 7

Thread: SSI Question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    64
    When I use SSI on a webpage, do I need to have the page end in .shtml or can I have it end in .html?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It depends on the server. Mostly, they need to be .shtml. This is because it takes the server longer to return the page if it needs to parse it. If it is set to parse all .html files, then it is a lot slower than letting the user set what files use SSI. Your username suggests you are a webmaster, so you'd have to read the docs for your server. If you're using Apache then I can help you out with this.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    64
    We are on a linux server. I would like to use .html if possible, because I have already configured all the pages for that.

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It's not the computer it's running on, but the configuration of the actual server program. What Web server do you use?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    64
    I have a friend hosting me. Basically its UNIX if thats what you are getting at. I dont completely understand.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    The easiest way is to create two SSI files, one ssitest.shtml, and one called ssitest.html

    Upload them, then test them from a web browser and see which one works.

    Since it's POSIX-based, it'll most likely be Apache, in which case there will be lines similar to the following in your httpd.conf file:
    Code:
    AddType text/html .shtml
    AddHandler server-parsed .shtml
    ...for .shtml, and:
    Code:
    AddHandler server-parsed .html
    ...for all .html files.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    This link has some info on configging Apache:
    http://www.builder.com/Servers/Apach...o_hbl_af082400
    "People who think they know everything are a great annoyance to those of us who do."

Posting Permissions

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



Click Here to Expand Forum to Full Width