UserAuth using htaccess - PowerPoint PPT Presentation

About This Presentation
Title:

UserAuth using htaccess

Description:

UserAuth using htaccess Apache Auth Basic NTLM Nogetiate Basic Edit your ... it caused can be overwrite the old password Create .htaccess Create new .htaccess file ... – PowerPoint PPT presentation

Number of Views:32
Avg rating:3.0/5.0
Slides: 7
Provided by: IdrisW8
Category:

less

Transcript and Presenter's Notes

Title: UserAuth using htaccess


1
UserAuth using htaccess
2
Apache Auth
  • Basic
  • NTLM
  • Nogetiate

3
Basic
  • Edit your /etc/apache2/sites-available/default
  • Change Options FollowSymLinks into Options
    All
  • Restart your apache /etc/init.d/apache2 restart

4
Create new password
  • Make new direktori mkdir /var/www/pass
  • Create new password using htpasswd
  • htpasswd -c /var/www/pass/.password ltusernamegt
  • To add more user htpasswd /var/www/pass/.password
    ltanother-usernamegt please note that do not use
    -c option after htpasswd command, it caused can
    be overwrite the old password

5
Create .htaccess
  • Create new .htaccess file inside /var/www/pass/
    directory
  • AuthUserFile /var/www/pass/.password
  • AuthGroupFile /dev/null
  • AuthName "Htaccess trial"
  • AuthType Basic
  • require valid-user

6
Test
  • Now you may test your password using your browser
    and access http//localhost/pass
Write a Comment
User Comments (0)
About PowerShow.com