Wednesday, April 22nd, 2009 | Author: myazhax
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.

  • Share/Bookmark
Category: Tutorial
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses

    Using Mozilla Firefox 3.5.3 on Windows XP
  1. thanks for the tuto bro..

    cheers :)

  2. Using Internet Explorer 7.0 on Windows Vista
  3. 2
    ledpurple 
    Friday, 1. January 2010

    Is possible to change the cpu id (uname -m) in rs/6000 44p model 170. My processor crashed. I need to change the processor and keep the same id.
    Thank you

Leave a Reply » Log in