.htaccess prob for apache home web server

Sharky Forums


Results 1 to 2 of 2

Thread: .htaccess prob for apache home web server

Threaded View

  1. #1
    Reef Shark
    Join Date
    Mar 2007
    Posts
    251

    .htaccess prob for apache home web server

    I made a home web server and created an .htaccess file so the sit would be password protected, I have this:

    AuthType Basic
    AuthName "This is a private area, please log in"

    AuthUserFile "C:\Documents and Settings\Administrator\My Documents\Secure Server Files\mypass.txt"
    AuthGroupFile /dev/null

    <Limit GET POST PUT>
    require valid-user
    </Limit>


    in the .htaccess file, and mypass.txt had the user and encrypted pass.

    However it doesn;t work, soi though my pass thing was wrong but it wasn;t. When I tried to create custom 404 pages, and i put:

    ErrorDocument 404 /notfound.html

    in .htaccess, it did not use the notfound.html file i had created.

    What did i do wrong?

    P.S. when saving htaccess, i told wordpad to save as all files and i typed in ".htaccess" as the name. this way it wouldn;t save it as a txt doc

    P.P.S.

    This is my whole .htaccess file:


    AuthType Basic
    AuthName "This is a private area, please log in"

    AuthUserFile "C:\Documents and Settings\Administrator\My Documents\Secure Server Files\mypass.txt"
    AuthGroupFile /dev/null

    <Limit GET POST PUT>
    require valid-user
    </Limit>

    ErrorDocument 404 /notfound.html



    thx in advance
    Last edited by darkthreat; 05-10-2007 at 09:58 PM.
    Dell Inspiron 6400 Laptop
    Dual Core 1.8 GHz, 2 GB RAM
    100 GB Hard Drive
    bleh bleh

    My Book Premium II
    External 1 TB Hard Drive

    OCZ Rally 2 Turbo
    16 GB USB Drive

Posting Permissions

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