AllowOverride AuthConfigin your
AuthType Basic AuthName "Password Required" AuthUserFile /full_path_to/.htpasswd Require valid-userMaintain .htpasswd with htpasswd: htpasswd -c -b ./htpasswd username password - creates the password file, without -c you need existing one. Test it here http://130.75.117.77/atest/ with testuser:testit Apache2 does not come up at the boot process. Edit the /etc/init.d/apache2 and comment out the following lines
if [ "$NO_START" != "0" -a "$1" != "stop" ]; then [ "$VERBOSE" != no ] && log_warning_msg "Not starting apache2 - edit /etc/default/apache2 and change NO_START to be 0."; exit 0; fiEven if NO_START=0 is set it stops here. Why? I dont know. Works fine for me, is there a symlink in /etc/rc?.d for the correct runlevel? (Carsten)
Title | How to limit access to certain directories on Apache |
Description | This page shows how to limit access to certain directories on Apache. |
Tags | apache access limit |
Category | Admin |