|
I'm not 100% sure but I think the basic root web directory on red hat is : /var/www/
This can be change in you apache configuration file: /etc/httpd/conf/httpd.conf
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
You have to edit this part and change the /var/www/ to you directory
and to you last point -- please run the command :
htpasswd -c /your/directory/.htpasswd glenn glenn
then you have to create a file .htaccess in you web server directory
and paste the following lines in your .htaccess (only change the /your/directory) parameter!
AuthType Basic
AuthName "Authetication"
AuthUserFile /your/derectory/.htpasswd
require valid-user
I hope that's all!
|