• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI Folders

#12
[eluser]David Cassidy[/eluser]
[quote author="JanDoToDo" date="1262454886"]Dave_C - I tried adding that files snippet but again it doesnt work. It just loads the download page without asking for user/pass:
and in the directory is:
Controllers
home.php
view.php
+SubFolder (and the subfolder contains the .htaccess and download.php as well as all the other controllers for the subsite)
--> .htaccess
--> download.php


<Files download.php>
AuthType Basic
AuthName "Software Download"
AuthUserFile "/home/squaresa/.htpasswds/public_html/lintel/passwd"
Require valid-user
</Files>[/quote]

Passwords are generally stored in a file named .htpasswd in the format of
Code:
user:password
where there is one user and password per line and the password is not simply plain-text, but an MD5 hash.

Once you've got your .htpasswd file straightened out, make sure the AuthUserFile portion in your Files directive is correct and that the mod_auth module is installed and enabled in Apache.

Also, you should ensure your password file isn't in a public directory. Instead, you should place it in a directory above the root documents folder for security purposes.


Messages In This Thread
CI Folders - by El Forum - 01-01-2010, 03:34 PM
CI Folders - by El Forum - 01-01-2010, 03:48 PM
CI Folders - by El Forum - 01-01-2010, 05:28 PM
CI Folders - by El Forum - 01-01-2010, 05:30 PM
CI Folders - by El Forum - 01-01-2010, 05:33 PM
CI Folders - by El Forum - 01-01-2010, 07:49 PM
CI Folders - by El Forum - 01-01-2010, 08:55 PM
CI Folders - by El Forum - 01-02-2010, 02:58 AM
CI Folders - by El Forum - 01-02-2010, 04:04 AM
CI Folders - by El Forum - 01-02-2010, 05:47 AM
CI Folders - by El Forum - 01-02-2010, 05:54 AM
CI Folders - by El Forum - 01-02-2010, 06:34 AM
CI Folders - by El Forum - 01-02-2010, 07:32 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.