Denying access in httpd.conf
myazhax# ee /usr/local/etc/apache22/httpd.conf
< Directory “/usr/local/www/administrator/” >
Options Indexes FollowSymLinks
AllowOverride AuthConfig
Order deny,allow
< /Directory >
“/usr/local/etc/apache22/httpd.conf” 512 lines, 17779 characters
myazhax# apachectl graceful
[Wed Apr 22 18:24:18 2009] [warn] module php5_module is already loaded, skipping
Creating an .htaccess file
myazhax#touch .htaccess
myazhax#ee .htaccess
AuthName “Kandang MyAzhax”
AuthType Basic
AuthUserFile /usr/local/www/administrator/.mypassfile
Require valid-user
Generating the password file
myazhax#htpasswd -c /usr/local/www/adminstrator/.mypassfile myazhax
New password:
Re-type new password:
Adding password for user myazhax
# htpasswd .mypassfile azhax
New password:
Re-type new password:
Adding password for user azhax
Try login; if it wrong the page will appear 401 Authorization Required
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn’t understand how to supply the credentials required.



Recent Comments