Password Directory
Posted by: Dingus (---.plus.com)
Date: February 04, 2015 02:26PM

Hi folks.
I want to keep one or more of my directories from ''public' view. Can anyone tell me how to password a single, or more, directory.

Options: ReplyQuote
Re: Password Directory
Posted by: RiggsFolly (---.as43234.net)
Date: February 04, 2015 02:58PM

There is some good documentation on the Apache web site [httpd.apache.org]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Password Directory
Posted by: Dingus (---.plus.com)
Date: February 04, 2015 05:53PM

Thanks Riggs.
It is a good article. However it doesn't show how to password a single directory.

Options: ReplyQuote
Re: Password Directory
Posted by: Otomatic (Moderator)
Date: February 04, 2015 06:11PM

Hi,

> However it doesn't show how to password a single directory.
.htaccess and .htpasswd only in that directory and not at the root of the site.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Password Directory
Posted by: Dingus (---.plus.com)
Date: February 04, 2015 06:13PM

This is what I get when I do exactly that:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Options: ReplyQuote
Re: Password Directory
Posted by: Otomatic (Moderator)
Date: February 04, 2015 06:44PM

Hi,

> Internal Server Error
Error into .htaccess file or required Apache module not loaded.
Exemple of .htaccess :
AuthName "Folder with restricted access"
AuthType Basic
AuthUserFile "path_to_file/.htpasswd"
require valid-user
Apatche documentation:
AuthType
In the explanation, you can also see what Apache modules must be activated depending on the requested authentication type.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Password Directory
Posted by: Dingus (---.plus.com)
Date: February 04, 2015 06:50PM

Thanks Otomatic.

It was the path that was causing the problem.

Solved

Options: ReplyQuote


Sorry, only registered users may post in this forum.