Welcome to Crakomili software



Choose language





Crakomili Software
Tailored For your needs
Please wait..
Chat Offline
free support chat
SECURE APACHE direcory


SECURE APACHE A DIRECTORY: at httpd.conf after < Directory /home/mosh/ros> put the line: AllowOverride AuthConfig Note: if u have squirrelmail inside /ros/web take the .htaccess from it- so it will continu to work! service httpd restart For a single user: at the directory that needs to be secured put the file .htaccess with content: AuthUserFile /home/path/public_html/private_dir/.htpasswd AuthGroupFile /dev/null AuthName "Aubies Private Page" AuthTipe Basic < Limit GET> require user tiger < /Limit> ------------------- than at the disiered directory: chmod 644 .htaccess htpasswd -c .htpasswd tiger (this will generate a file .htpasswd u can check) info: -2 change the username u need to change it at the 2 files above. For multiple users: at the private dir add users: htpasswd .htpasswd eagle htpasswd .htpasswd aubi htpasswd .htpasswd tomi make .htgroup and put inside: my-users: eagle , aubi , tomi the file .htaccess should look like that: AuthUserFile /home/path/public_html/private_dir/.htpasswd AuthGroupFile /home/path/public_html/private_dir/.htgroup AuthName only_my_friends AuthType Basic < Limit GET> require group my-users < /Limit>



Post a Comment
your name:
Write code here  

     © crakomili software, all rights reserved © 2007