Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on Making anything work in the Shared & Semi-Dedicated forum
I'm not too sure what I am doing wrong, just testing a blank .html file and it won't display... >.< http://kiwichan.com/files/homepage/ Inside that directory "kiwichan" ...

  1. #1
    Rawr! kiwi li's Avatar
    Join Date
    Sep 2002
    Posts
    471

    Making anything work

    I'm not too sure what I am doing wrong, just testing a blank .html file and it won't display... >.<

    http://kiwichan.com/files/homepage/

    Inside that directory "kiwichan" is a index.html file.

    Whenever I try to view that file I get a [Sat Sep 2 19:26:52 2006] [error] [client xx.xxx.xx.xxx] Premature end of script headers: /home/kiwichan/public_html/files/homepage/kiwichan/index.html.
    Code:
    [properties of index.html]
    chmod 755
    
    [inside of index.html]
    <html>
    <body>
    </body>
    </html>
    
    [inside of .htaccess]
    Options +Indexes
    
    <Files *.html>
    ForceType application/x-httpd-php
    </Files>
    If you see me posting, there must be bad news. ^^

  2. #2
    Rawr! kiwi li's Avatar
    Join Date
    Sep 2002
    Posts
    471
    Ah... support got back to me and I needed to use SetHandler instead of ForceType in .htaccess. ^^;; Then it works! ^_^ Yay! ...although I don't know what the difference is between them... ^^;;;

    Code:
    <Files *.html>
    SetHandler application/x-httpd-php
    </Files>
    If you see me posting, there must be bad news. ^^

  3. #3
    Loyal Client
    Join Date
    Sep 2001
    Location
    Wichita, KS
    Posts
    1,647
    I guess the difference is just that one works right and the other doesn't

    SetHandler sets the program to treat it like a PHP page, I don't know what exactly ForceType does.

  4. #4
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Module vs. CGI?
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

Bookmarks

Posting Permissions

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