can you help me whith .httpaccess...
give link or links whith information about .httpaccess...
thanks..
Megab0rt
Someone help me whith .httpaccess...
Moderators: Developers, Moderators
Re: Someone help me whith .httpaccess...
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
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
Who is online
Users browsing this forum: No registered users and 5 guests