Someone help me whith .httpaccess...

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
megab0rt

Someone help me whith .httpaccess...

Post by megab0rt »

can you help me whith .httpaccess...
give link or links whith information about .httpaccess...
thanks..
Megab0rt
fragbait
Posts: 8
Joined: Wed Oct 18, 2006 5:23 pm

Re: Someone help me whith .httpaccess...

Post by fragbait »

I am running centos 4.3 and this is how I have setup .htaccess to password protect a dir.

pico /etc/httpd/conf/httpd.conf

just below this item

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

ADD

<Directory "/var/www/html/yourdirectory">
AllowOverride AuthConfig
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>

add this file to yourdirectory .htaccess
containing

AuthName "the name of your directiry ior what ever restricted access"
AuthType Basic
AuthUserFile /var/www/members/.htpasswd
require user admin

Now /var/www/members/.htpasswd
has the username and their passwds like this
admin:z.UokTTi5HKJLKudff


To create a user and their passwd do this:

htpasswd -c /var/www/members/.htpasswd username

Hope this helps, also have a look at this:
http://mail.ai.net.nz/horde/wicked/disp ... ntosServer






To set up .httpaccess you will need the following
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests