On Wednesday 25 Mar 2009, Ashish Verma wrote:
>
> #htpasswd -c /mount/repositories/av1984_apache_authfile ashish
> */*use password as password*/*
>
> #ls -l /mount/repositories/av1984_apache_authfile
>
> -rw-r--r-- 1 root root 21 2009-03-25 12:32
> /mount/repositories/av1984_apache_authfile

Also give output of "ls -l /path/to/dot/htacess/file"

>
> #vi /mount/repositories/index.html
>
> <html>
> <body>
> <a href=/fc10/>Fedora10 Repository</a>
> <br>
> <a href=/rhl4/>RHEL4 Repository</a>
> </body>
> </html>
> #vi /etc/httpd/conf/httpd.conf
>
> <VirtualHost *:80>
>     ServerAdmin [email protected]
>     DocumentRoot /mount/repositories/
>     ServerName yum.av1984.net
>     Options Indexes FollowSymLinks
>     ErrorLog logs/yum_log
>     CustomLog logs/yum_log common
>
>  <Directory /mount/repositories/>
>     Options Indexes
>     AllowOverride None
      ^^^^^^^^^^^^^^^^^^

Change above to AllowOverride AuthConfig

> </Directory>
>
> <Directory /mount/repositories/rhl4>
>     Options Indexes FollowSymLinks
>     AllowOverride None
>     AuthType Basic
>     AuthName "av1984_auth"
>     AuthUserFile /mount/repositories/av1984_apache_authfile

Suggest you rename it to .av1984_apache_authfile otherwise to prevent 
others gaining access to this file by giving the full path.

>     Require ashish valid-user
> </Directory>
>
> <Directory /mount/repositories/fc10>
>     Options Indexes FollowSymLinks
>     AllowOverride None
> </Directory>
>
> </VirtualHost>


-- 
Arun Khan

_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to