Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Directory Listing

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
directory listing cut off? - A few weeks ago, Apache 2.0.43 on XP started returning a truncated HTML page for the directory index that it generates for the photo on my web server. The HTML just cuts off around 7 or 8K into the listing. I upgraded to 2.0.48 and it still..

No Directory Listing - Hi all, I am going round in circles with this, I want to stop directory listing when no index file is in a specific directory I cannot find where in the conf file I need to set this up and what entry I need to put in.... help *very* much ..

directory listing - Hi I have apache 2.0.54 working fine but I need to do directory listing on only 1 directory how cam I do it?? The idea is to creat a directory called downloads and let people navigate in this directory and download the files it will have

Apache Directory Listing - How can you make all non listable but make one with directory listing As in : / and /foo make non listable but make listable. Thanks

Directory Listing Problem - Hi there. I'm having a slight problem with directory listings on the Win32 (1.3.27) version of Apache. it will only perform directory listings in of 'htdocs' (the default document folder) but not I've got about 20..
Author Message
David

External


Since: Oct 18, 2007
Posts: 5



(Msg. 1) Posted: Thu Oct 18, 2007 10:05 am
Post subject: Directory Listing
Archived from groups: alt>apache>configuration (more info?)

Is there a way to stop directory listing. i.e. if i have no index file in
my directory the browser displays a full directory listing of all the files
in the directory

 >> Stay informed about: Directory Listing 
Back to top
Login to vote
Hans van Zijst

External


Since: Oct 15, 2007
Posts: 12



(Msg. 2) Posted: Thu Oct 18, 2007 10:05 am
Post subject: Re: Directory Listing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi David,

That's not the same, DirectoryIndex or Indexes. Do read the
documentation, it's good for you Smile

DirectoryIndex tells Apache which files to look for in a directory to
show as an index. Indexes tells Apache whether or not to show a
directory listing if the DirectoryIndex isn't found.

Kind regards,

Hans


David wrote:
> Hmm. I assumed the directory index was required to specify which index page
> type to look for.
>
> i.e. in each virtual host directory i placed:
>
> DirectoryIndex index.htm index.html index.php
>
> Are you saying this is not required?
>
>

 >> Stay informed about: Directory Listing 
Back to top
Login to vote
Hans van Zijst

External


Since: Oct 15, 2007
Posts: 12



(Msg. 3) Posted: Thu Oct 18, 2007 12:15 pm
Post subject: Re: Directory Listing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi David,

There is, it's in the Options section. Check out the documentation:

http://httpd.apache.org/docs/2.2/mod/core.html#options

In your configuration, there's probably a statement like

"Options Indexes"

Remove the "Indexes" and Apache won't show the directory listing anymore.

Regards,

Hans


David wrote:
> Is there a way to stop directory listing. i.e. if i have no index file in
> my directory the browser displays a full directory listing of all the files
> in the directory
>
>
 >> Stay informed about: Directory Listing 
Back to top
Login to vote
David

External


Since: Oct 18, 2007
Posts: 5



(Msg. 4) Posted: Thu Oct 18, 2007 12:15 pm
Post subject: Re: Directory Listing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Hans van Zijst" <hzi.TakeThisOut@syncera.nl> wrote in message
news:47173252$0$24365$bf4948fe@news.tele2.nl...
> Hi David,
>
> There is, it's in the Options section. Check out the documentation:
>
> http://httpd.apache.org/docs/2.2/mod/core.html#options
>
> In your configuration, there's probably a statement like
>
> "Options Indexes"
>
> Remove the "Indexes" and Apache won't show the directory listing anymore.
>
> Regards,
>
> Hans
>

Hmm. I assumed the directory index was required to specify which index page
type to look for.

i.e. in each virtual host directory i placed:

DirectoryIndex index.htm index.html index.php

Are you saying this is not required?
 >> Stay informed about: Directory Listing 
Back to top
Login to vote
David

External


Since: Oct 18, 2007
Posts: 5



(Msg. 5) Posted: Thu Oct 18, 2007 5:59 pm
Post subject: Re: Directory Listing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Hans van Zijst" <hzi DeleteThis @syncera.nl> wrote in message
news:47174cc4$0$24171$bf4948fe@news.tele2.nl...
> Hi David,
>
> That's not the same, DirectoryIndex or Indexes. Do read the
> documentation, it's good for you Smile
>
> DirectoryIndex tells Apache which files to look for in a directory to
> show as an index. Indexes tells Apache whether or not to show a
> directory listing if the DirectoryIndex isn't found.
>
> Kind regards,
>
> Hans
>
>


The only config i have for this is

Options Indexes FollowSymLinks

I cant see anyting about directory listing.

Can anyone else elaborate? TIA
 >> Stay informed about: Directory Listing 
Back to top
Login to vote
David

External


Since: Oct 18, 2007
Posts: 5



(Msg. 6) Posted: Fri Oct 19, 2007 1:40 pm
Post subject: Re: Directory Listing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"David" <me RemoveThis @privacy.net> wrote in message
news:13hfinjgsp3ft85@corp.supernews.com...
>
> "Hans van Zijst" <hzi RemoveThis @syncera.nl> wrote in message
> news:47174cc4$0$24171$bf4948fe@news.tele2.nl...
>> Hi David,
>>
>> That's not the same, DirectoryIndex or Indexes. Do read the
>> documentation, it's good for you Smile
>>
>> DirectoryIndex tells Apache which files to look for in a directory to
>> show as an index. Indexes tells Apache whether or not to show a
>> directory listing if the DirectoryIndex isn't found.
>>
>> Kind regards,
>>
>> Hans
>>
>>
>
>
> The only config i have for this is
>
> Options Indexes FollowSymLinks
>
> I cant see anyting about directory listing.
>
> Can anyone else elaborate? TIA
>


to elaborate on this i want to avoid having to add config to each individual
virtual directory.

I want to do this within the httpd file to apply to all sites. The apache
manual is unclear on how to do this imo

Can anyone confirm this is the correct section to edit

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

Should i change this to:

Change to: Options -Indexes FollowSymLinks ??????

TIA
 >> Stay informed about: Directory Listing 
Back to top
Login to vote
Hans van Zijst

External


Since: Oct 15, 2007
Posts: 12



(Msg. 7) Posted: Fri Oct 19, 2007 8:35 pm
Post subject: Re: Directory Listing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David,

You can use the "Options" directive in your default configuration, not
just within a VirtualServer or Directory context. See:

http://httpd.apache.org/docs/2.2/mod/core.html#options

If there's no Options directive in your default config, add one:

Options -Indexes

That should do the trick.

Kind regards,

Hans


David schreef:
>> The only config i have for this is
>>
>> Options Indexes FollowSymLinks
>>
>> I cant see anyting about directory listing.
>>
>> Can anyone else elaborate? TIA
>>
>
>
> to elaborate on this i want to avoid having to add config to each individual
> virtual directory.
>
> I want to do this within the httpd file to apply to all sites. The apache
> manual is unclear on how to do this imo
>
> Can anyone confirm this is the correct section to edit
>
> #
> # Possible values for the Options directive are "None", "All",
> # or any combination of:
> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
> #
> # Note that "MultiViews" must be named *explicitly* --- "Options All"
> # doesn't give it to you.
> #
> # The Options directive is both complicated and important. Please see
> # http://httpd.apache.org/docs/2.0/mod/core.html#options
> # for more information.
> #
> Options Indexes FollowSymLinks
>
> Should i change this to:
>
> Change to: Options -Indexes FollowSymLinks ??????
>
> TIA
>
>
 >> Stay informed about: Directory Listing 
Back to top
Login to vote
HansH

External


Since: Dec 08, 2006
Posts: 112



(Msg. 8) Posted: Fri Oct 19, 2007 10:13 pm
Post subject: Re: Directory Listing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"David" <me.DeleteThis@privacy.net> schreef in bericht
news:13hh9dmb04lo03e@corp.supernews.com...
> Can anyone confirm this is the correct section to edit
>
> #
> # Possible values for the Options directive are "None", "All",
> # or any combination of:
> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
> MultiViews
> #
> # Note that "MultiViews" must be named *explicitly* --- "Options All"
> # doesn't give it to you.
> #
> # The Options directive is both complicated and important. Please see
> # http://httpd.apache.org/docs/2.0/mod/core.html#options
> # for more information.
> #
> Options Indexes FollowSymLinks
>
> Should i change this to:
>
> Change to: Options -Indexes FollowSymLinks ??????
>
As http://httpd.apache.org/docs/2.2/mod/core.html#options has a warning for
you:
Mixing Options with a + or - with those without is not valid syntax, and is
likely to cause unexpected results.

just change the line to
Options FollowSymLinks
or
Options None


Hansh
 >> Stay informed about: Directory Listing 
Back to top
Login to vote
David

External


Since: Oct 18, 2007
Posts: 5



(Msg. 9) Posted: Sat Oct 20, 2007 10:34 am
Post subject: Re: Directory Listing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"HansH" <hansh.TakeThisOut@invalid.invalid> wrote in message
news:4719107e$0$241$e4fe514c@news.xs4all.nl...
> "David" <me.TakeThisOut@privacy.net> schreef in bericht
> news:13hh9dmb04lo03e@corp.supernews.com...
>> Can anyone confirm this is the correct section to edit
>>
>> #
>> # Possible values for the Options directive are "None", "All",
>> # or any combination of:
>> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
>> MultiViews
>> #
>> # Note that "MultiViews" must be named *explicitly* --- "Options All"
>> # doesn't give it to you.
>> #
>> # The Options directive is both complicated and important. Please see
>> # http://httpd.apache.org/docs/2.0/mod/core.html#options
>> # for more information.
>> #
>> Options Indexes FollowSymLinks
>>
>> Should i change this to:
>>
>> Change to: Options -Indexes FollowSymLinks ??????
>>
> As http://httpd.apache.org/docs/2.2/mod/core.html#options has a warning
> for you:
> Mixing Options with a + or - with those without is not valid syntax, and
> is likely to cause unexpected results.
>
> just change the line to
> Options FollowSymLinks
> or
> Options None
>
>
> Hansh


Thank you Hansh. I have removed Indexes completely rather than using +/-
Thanks for replying
 >> Stay informed about: Directory Listing 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]