Apache help!

Discussion in 'Computer Software and Operating Systems' started by VashTS, Apr 4, 2015.

  1. VashTS
    OP

    VashTS Beat it, son

    Member
    3,885
    695
    Mar 14, 2009
    United States
    Upstate NY
    Any got experience and can provide some advice?

    I have my server running fine but I'm trying to add basic password protection using .htaccess

    I have created the .htaccess file using the many tutorials out there. I created the .htpasswd file in the same manner. I edited my httpd.conf file to AllowOverride All. This causes internal server error 500. The funny part is it DID allow the username/password 1 time and 1 time only but server error when it was entered successfully.

    I'm serving off my main PC under "C:\users\mypc\google drive\webhost\website" all the files are under that website folder so i put the .htaccess file in there. i created a folder inside there called "secret" containing the .htpasswd file.

    this is what my .htaccess file looks like
    Code:
    AuthUserFile /secret/.htpasswd
    AuthName "Please Enter Password"
    AuthType Basic
    Require valid-user
    
    any ideas whats going on here?
     
  2. VashTS
    OP

    VashTS Beat it, son

    Member
    3,885
    695
    Mar 14, 2009
    United States
    Upstate NY
    just in case anyone needs the answer.... the path to the htpasswd file was not correct, found out very easily once i checked the log files 0_o FUCK i hate software sometimes.