You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Luis Moreira <lu...@esi.pt> on 2007/11/09 12:36:16 UTC

[users@httpd] View directory index but not parent directory

Hi

	Using Apache 2.2.6, I want to allow access to a specific directory
with authentication, which works fine.
	When accessed, it looks like this 

Index of xxxx

. Parent Directory 
. fitoterapia.krp 
. publish.zip 

	The thing is I don't want "parent directory" to be viewed, or at
least "clickable".
	Is this achievable within Apache?

Thanks
Luis



---------------------------------------------------------------------
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] View directory index but not parent directory

Posted by Graeme Fowler <gr...@graemef.net>.
On Fri, 2007-11-09 at 11:36 +0000, Luis Moreira wrote:
> Using Apache 2.2.6, I want to allow access to a specific directory
> with authentication, which works fine.
> When accessed, it looks like this 
> 
> Index of xxxx
> 
> . Parent Directory 
> . fitoterapia.krp 
> . publish.zip 
> 
> The thing is I don't want "parent directory" to be viewed, or at
> least "clickable".

In a .htaccess file, or in the main config for that virtualhost,
location or directory:

Options +Indexes
IndexIgnore ..

Graeme


---------------------------------------------------------------------
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] View directory index but not parent directory

Posted by Joshua Slive <jo...@slive.ca>.
On Nov 9, 2007 9:59 AM, Luis Moreira <lu...@esi.pt> wrote:
>
>
> Hi
>         Sorry to come back to this, but I got an error saying that messages
> to me were bouncing, so I don't have a clue if someone replied or not...

Check one of the list archives. For example:
http://apache.markmail.org/search/?q=luis.moreira%40esi.pt

Joshua.

---------------------------------------------------------------------
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


[users@httpd] View directory index but not parent directory

Posted by Luis Moreira <lu...@esi.pt>.

Hi
	Sorry to come back to this, but I got an error saying that messages
to me were bouncing, so I don't have a clue if someone replied or not...

	Using Apache 2.2.6, I want to allow access to a specific directory
with authentication, which works fine.
	When accessed, it looks like this 

Index of xxxx

. Parent Directory 
. fitoterapia.krp 
. publish.zip 

	The thing is I don't want "parent directory" to be viewed, or at
least "clickable".
	Is this achievable within Apache?

Thanks
Luis




---------------------------------------------------------------------
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