Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> Services >> HTTP Server >> Apache >> How to set up protected web site via user authentication

Example for Windows platform ============================ 1. In httpd.conf, ensure directory to be protected has the following directive eg. <Directory "D:/apache/htdocs"> AllowOverride AuthConfig ... </Directory> 2. Create a user password file (preferably at a location not under the web server's document root. eg. D:\APACHE\BIN\htpasswd -c D:\APACHE\USERS\PASSWD arahman new password: ******* retype new password: ******* 3. Create a .htaccess file at the directory to be password protected eg. D:\apache\htdocs\.htaccess AuthName "Restricted site" AuthType Basic AuthUserFile d:\apache\users\passwd require valid-user 4. Restart the apache web server
[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]