You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Harry Spier <ha...@hotmail.com> on 2011/09/14 03:33:12 UTC

[users@httpd] Letting users see directory contents of protected directory

Dear list members,

On a shared hosting linux webserver running 
Apache I have a password protected directory.  I want users who have the
 password for the directory "/downloads" to be able to list the contents
 of that directory and its subdirectories.

I have an .htaccess file in the password protected directory /downloads with the following contents:
Options Indexes
AuthType Basic
AuthName "Access to /downloads"
AuthUserFile /kunden/homepages/18/d249834675/htpasswd
Require user Ikari


I
 thought the Options Indexes line would allow me to do that, but when I 
type in: www.xxxxxxx/downloads/ in the browser I get Error 403 "You have
 tried to access a document for which you don't have privileges.  Before
 I put "Options Indexes" in the .htaccess I got an Error 404 File not 
found.

Could someone tell me how to set it up so users who have 
the password to the directory can list, view and download the contents 
of the directory.

Many thanks,
Harry Spier 		 	   		  

Re: [users@httpd] Letting users see directory contents of protected directory

Posted by Frank Gingras <fr...@gmail.com>.

On 13/09/11 09:58 PM, Harry Spier wrote:
> Many thanks for this suggestion.
> I've tried both the following in the .htaccess but I now get a Error 500
> internal server error
>
> IndexOptions ShowForbidden
> AuthType Basic
> AuthName "Access to /downloads"
> AuthUserFile /kunden/homepages/18/d249834675/htpasswd
> Require user Ikari
>
> and
> Options Indexes
> IndexOptions ShowForbidden
> AuthType Basic
> AuthName "Access to /downloads"
> AuthUserFile /kunden/homepages/18/d249834675/htpasswd
> Require user Ikari
>
> Thanks,
> Harry Spier
>
>  > Date: Tue, 13 Sep 2011 21:40:42 -0400
>  > From: francois.gingras@gmail.com
>  > To: users@httpd.apache.org
>  > Subject: Re: [users@httpd] Letting users see directory contents of
> protected directory
>  >
>  >
>  >
>  > On 13/09/11 09:33 PM, Harry Spier wrote:
>  > > Dear list members,
>  > >
>  > > On a shared hosting linux webserver running Apache I have a password
>  > > protected directory. I want users who have the password for the
>  > > directory "/downloads" to be able to list the contents of that
> directory
>  > > and its subdirectories.
>  > >
>  > > I have an .htaccess file in the password protected directory /downloads
>  > > with the following contents:
>  > > Options Indexes
>  > > AuthType Basic
>  > > AuthName "Access to /downloads"
>  > > AuthUserFile /kunden/homepages/18/d249834675/htpasswd
>  > > Require user Ikari
>  > >
>  > >
>  > > I thought the Options Indexes line would allow me to do that, but
> when I
>  > > type in: www.xxxxxxx/downloads/ in the browser I get Error 403 "You
> have
>  > > tried to access a document for which you don't have privileges.
> Before I
>  > > put "Options Indexes" in the .htaccess I got an Error 404 File not
> found.
>  > >
>  > > Could someone tell me how to set it up so users who have the
> password to
>  > > the directory can list, view and download the contents of the
> directory.
>  > >
>  > > Many thanks,
>  > > Harry Spier
>  >
>  > Harry,
>  >
>  > You use IndexOptions ShowForbidden and let you user auth once they click
>  > on the resource.
>  >
>  > Frank.
>  >
>  > ---------------------------------------------------------------------
>  > The official User-To-User support forum of the Apache HTTP Server
> Project.
>  > See <URL:http://httpd.apache.org/userslist.html> for more info.
>  > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  > " from the digest: users-digest-unsubscribe@httpd.apache.org
>  > For additional commands, e-mail: users-help@httpd.apache.org
>  >

What does the error log say, exactly?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Letting users see directory contents of protected directory

Posted by Harry Spier <ha...@hotmail.com>.
Many thanks for this suggestion.
I've tried both the following in the .htaccess but I now get a Error 500 internal server error

IndexOptions ShowForbidden
AuthType Basic
AuthName "Access to /downloads"
AuthUserFile /kunden/homepages/18/d249834675/htpasswd
Require user Ikari

and
Options Indexes
IndexOptions ShowForbidden
AuthType Basic
AuthName "Access to /downloads"
AuthUserFile /kunden/homepages/18/d249834675/htpasswd
Require user Ikari

Thanks,
Harry Spier

> Date: Tue, 13 Sep 2011 21:40:42 -0400
> From: francois.gingras@gmail.com
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Letting users see directory contents of protected directory
> 
> 
> 
> On 13/09/11 09:33 PM, Harry Spier wrote:
> > Dear list members,
> >
> > On a shared hosting linux webserver running Apache I have a password
> > protected directory. I want users who have the password for the
> > directory "/downloads" to be able to list the contents of that directory
> > and its subdirectories.
> >
> > I have an .htaccess file in the password protected directory /downloads
> > with the following contents:
> > Options Indexes
> > AuthType Basic
> > AuthName "Access to /downloads"
> > AuthUserFile /kunden/homepages/18/d249834675/htpasswd
> > Require user Ikari
> >
> >
> > I thought the Options Indexes line would allow me to do that, but when I
> > type in: www.xxxxxxx/downloads/ in the browser I get Error 403 "You have
> > tried to access a document for which you don't have privileges. Before I
> > put "Options Indexes" in the .htaccess I got an Error 404 File not found.
> >
> > Could someone tell me how to set it up so users who have the password to
> > the directory can list, view and download the contents of the directory.
> >
> > Many thanks,
> > Harry Spier
> 
> Harry,
> 
> You use IndexOptions ShowForbidden and let you user auth once they click 
> on the resource.
> 
> Frank.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
 		 	   		  

Re: [users@httpd] Letting users see directory contents of protected directory

Posted by Frank Gingras <fr...@gmail.com>.

On 13/09/11 09:33 PM, Harry Spier wrote:
> Dear list members,
>
> On a shared hosting linux webserver running Apache I have a password
> protected directory. I want users who have the password for the
> directory "/downloads" to be able to list the contents of that directory
> and its subdirectories.
>
> I have an .htaccess file in the password protected directory /downloads
> with the following contents:
> Options Indexes
> AuthType Basic
> AuthName "Access to /downloads"
> AuthUserFile /kunden/homepages/18/d249834675/htpasswd
> Require user Ikari
>
>
> I thought the Options Indexes line would allow me to do that, but when I
> type in: www.xxxxxxx/downloads/ in the browser I get Error 403 "You have
> tried to access a document for which you don't have privileges. Before I
> put "Options Indexes" in the .htaccess I got an Error 404 File not found.
>
> Could someone tell me how to set it up so users who have the password to
> the directory can list, view and download the contents of the directory.
>
> Many thanks,
> Harry Spier

Harry,

You use IndexOptions ShowForbidden and let you user auth once they click 
on the resource.

Frank.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org