#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Indonesia
    Posts
    87
    Rep Power
    14
    i try to use .htacess script to make some
    custom error pages.
    But it doesn't work !! Can anyone help me ??

    I wrote this on my .htaccess file :
    ErrorDocument 404 http://mydomain/404.html
    ErrorDocument 500 http://mydomain/500.html
    etc

    I put .htaccess file on public_html directory
    Do I miss something ???
    Thx before !!!

    NB : The server use Apache web server

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    14
    Did you set the AllowOverride directive in your httpd.conf file?? If you haven't try setting it according to the Apache manual (All should do it).
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Indonesia
    Posts
    87
    Rep Power
    14
    Thx for the information !!
    I set the Allow Override in the httpd.conf
    from None to All
    And it works !!!

    My next question is :
    I read in the httpd.conf guide and it said that there're some choices to fill the Allow Override like Option, File Info, etc

    If I wanna make some custom error pages and some password protection with the .htpasswd, what choice is the best ???

    Or maybe someone can explain to me what each option mean ??

    Thank's before !!



    ------------------
    ** It's the world of Oscario **
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Go to -> http://www.apache.org/docs/mod/core.html#errordocument and look at the "Override:" line. It stated "FileInfo" so that's the one you needed.

    Then go to -> http://www.apache.org/docs/mod/core.html#allowoverride and check out the AllowOverride directives.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Indonesia
    Posts
    87
    Rep Power
    14
    Thx alot for your information.
    It gives me lots of new knowledge !!!


    See ya !!!!



    ------------------
    ** It's the world of Oscario **

IMN logo majestic logo threadwatch logo seochat tools logo