This is a discussion on Authentification within the Apache Web Server forums, part of the Web Server and Related Forums category; Ok This is what i have so far: I have made a password file using htpasswd. I used -c access ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Ok This is what i have so far:
I have made a password file using htpasswd. I used -c access Joey for the command. Entered the password and it was created. In the httpd.conf, I have this: <Directory "C:/Program Files/Apache Group/Apache2/htdocs/root/"> Options FollowSymLinks AllowOverride AuthConfig AuthType Basic AuthName "Restricted Files" AuthUserFile "C:/Program Files/Apache Group/Apache2/bin/access" Require user Joey </Directory> SO what I'm trying to do is password protect root folder. So far it works, when i try to access that directory I get a password prompt. I enter Joey and my password. It gives me the browser error message forbidden, and the error log file says: [Fri Oct 17 21:58:41 2003] [error] [client 192.168.1.1] Directory index forbidden by rule: C:/Program Files/Apache Group/Apache2/htdocs/root/ Is this because of a Windows Permission? Everyone is allowed to view it in the windows security, but Im not sure if that has anything to do with it. Can anyone suggest anything or tell me what Im doing wrong? Thanks. |
|
|||
|
Renegade <renaxgade@nospam.com> wrote:
> Ok This is what i have so far: > I have made a password file using htpasswd. I used -c access Joey for > the command. Entered the password and it was created. In the httpd.conf, > I have this: ><Directory "C:/Program Files/Apache Group/Apache2/htdocs/root/"> > Options FollowSymLinks > AllowOverride AuthConfig > AuthType Basic > AuthName "Restricted Files" > AuthUserFile "C:/Program Files/Apache Group/Apache2/bin/access" > Require user Joey ></Directory> > > SO what I'm trying to do is password protect root folder. So far it > works, when i try to access that directory I get a password prompt. I > enter Joey and my password. It gives me the browser error message > forbidden, and the error log file says: > [Fri Oct 17 21:58:41 2003] [error] [client 192.168.1.1] Directory index > forbidden by rule: C:/Program Files/Apache Group/Apache2/htdocs/root/ is there an index.html file in the root/ dir? -- my life, my universe, my everything http://www.dtch.org |
|
|||
|
armin walland wrote:
> Renegade <renaxgade@nospam.com> wrote: > >>Ok This is what i have so far: >>I have made a password file using htpasswd. I used -c access Joey for >>the command. Entered the password and it was created. In the httpd.conf, >>I have this: >><Directory "C:/Program Files/Apache Group/Apache2/htdocs/root/"> >> Options FollowSymLinks >> AllowOverride AuthConfig >> AuthType Basic >>AuthName "Restricted Files" >>AuthUserFile "C:/Program Files/Apache Group/Apache2/bin/access" >>Require user Joey >></Directory> >> >>SO what I'm trying to do is password protect root folder. So far it >>works, when i try to access that directory I get a password prompt. I >>enter Joey and my password. It gives me the browser error message >>forbidden, and the error log file says: >>[Fri Oct 17 21:58:41 2003] [error] [client 192.168.1.1] Directory index >>forbidden by rule: C:/Program Files/Apache Group/Apache2/htdocs/root/ > > > > is there an index.html file in the root/ dir? > > Nope but there is two more direcrtorys. |
|
|||
|
Renegade wrote:
>> is there an index.html file in the root/ dir? >> > Nope but there is two more direcrtorys. "Directory index forbidden by rule" probably means that you're requesting a directory and Apache is not allowed to list its contents. You should either allow listing (check "AllowOverride Indexes" and "Options Indexes") or request a file. |
| Thread Tools | |
| Display Modes | |
|
|