You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Victor B. Gonzalez" <ap...@vbgunz.com> on 2003/06/02 05:41:55 UTC

[users@httpd] Turning off auto directory indexing *except* per directory specified?

Hello Apache,

  I've searched through the documentation on Apache for how to turn
  off auto directory indexing but I am coming up empty. I would like
  for the contents of any and all directories to never be listed.

  I would like for the contents of certain directories to be listed
  but on a global scale I would like all directories *not listed*. Is
  this possible?

  I searched the documentation and feel I came close to it but the
  definitions to mod_dir and mod_autoindex do not explain how to do
  it... Maybe its a little more complex than I assume or maybe I am
  looking at the wrong docs...

  I would surely appreciate any help on how to turn off auto indexing
  globally yet enable it locally for certain dirs. I love links :)

  Thank you :)

-- 
Best regards,
 Victor B. Gonzalez                          

apache_2.0.46-win32-x86-no_src
Windows XP 5.1 Build 2600 Service Pack 1


---------------------------------------------------------------------
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] Turning off auto directory indexing *except* per directory specified?

Posted by Rich Bowen <rb...@rcbowen.com>.
On Sun, 1 Jun 2003, Victor B. Gonzalez wrote:

> Hello Apache,
>
>   I've searched through the documentation on Apache for how to turn
>   off auto directory indexing but I am coming up empty. I would like
>   for the contents of any and all directories to never be listed.

Options -Indexes

Or remove "Indexes" from existing "Options" directives.

>   I would like for the contents of certain directories to be listed
>   but on a global scale I would like all directories *not listed*. Is
>   this possible?

Globally, have "Options -Indexes" and then, for a particular directory:

<Directory /what/ever>
Options +Indexes
</Directory>

>   I searched the documentation and feel I came close to it but the
>   definitions to mod_dir and mod_autoindex do not explain how to do
>   it... Maybe its a little more complex than I assume or maybe I am
>   looking at the wrong docs...
>
>   I would surely appreciate any help on how to turn off auto indexing
>   globally yet enable it locally for certain dirs. I love links :)

http://httpd.apache.org/docs/misc/FAQ.html#indexes

-- 
Who can say where the road goes
Where the day flows
Only time
 --Pilgrim (Enya - A Day Without Rain)

---------------------------------------------------------------------
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] Turning off auto directory indexing *except* per directory specified?

Posted by Jeff Cohen <su...@gej-it.com>.
Hi Victor,

Check Option -Indexes at the root directory directives, that should do it
for you.

Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!

> -----Original Message-----
> From: Victor B. Gonzalez [mailto:apacheusergroup@vbgunz.com]
> Sent: Sunday, June 01, 2003 11:42 PM
> To: Apache Users
> Subject: [users@httpd] Turning off auto directory indexing *except* per
directory
> specified?
> 
> Hello Apache,
> 
>   I've searched through the documentation on Apache for how to turn
>   off auto directory indexing but I am coming up empty. I would like
>   for the contents of any and all directories to never be listed.
> 
>   I would like for the contents of certain directories to be listed
>   but on a global scale I would like all directories *not listed*. Is
>   this possible?
> 
>   I searched the documentation and feel I came close to it but the
>   definitions to mod_dir and mod_autoindex do not explain how to do
>   it... Maybe its a little more complex than I assume or maybe I am
>   looking at the wrong docs...
> 
>   I would surely appreciate any help on how to turn off auto indexing
>   globally yet enable it locally for certain dirs. I love links :)
> 
>   Thank you :)
> 
> --
> Best regards,
>  Victor B. Gonzalez
> 
> apache_2.0.46-win32-x86-no_src
> Windows XP 5.1 Build 2600 Service Pack 1
> 
> 
> ---------------------------------------------------------------------
> 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


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