Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

How do I configure apache2 so it will use htaccess files in each folder I want to protect ? Each folder represents a user and I want to configure each user separately and without having to modify the global httpd.conf file. I’ve placed the following into a .htaccess file in one folder, the name-1 folder, but I get the error message, “this web site does not require authentication” when I try to access the folder:
AuthType Basic
AuthUserFile /srv/auth/name-1/.htpasswd
AuthGroupFile /dev/null
AuthName "Enter user name and password, for demo cameras, enter demo and 12345"
Require valid-user
I’ve created the htpasswd file identified in line 2, and I’ve enabled htaccess in apache2.conf.
Note that I only want to protect certain folders, so some folders will be protected, but others, not. This all worked when I configured httpd.conf for each folder I wanted to protect, without using htaccess files, but stopped working when I switched to control via htaccess files in each folder.
gerard
Jon Harris
orbitstorm88
rem3n
yolanda smith
301276acdc124dd982fe86364ba8c4
30ddab6038c044188d489290785dcb
699c9bc0a2c34f248e792cb8d2c6ab
Kent Morlan
sylvaticus
agitechcr
8b8f3c8ea96345bf8ddb0a59a008e2