List Info

Thread: IndexIgnore list




IndexIgnore list
user name
2006-03-30 07:57:36
> -----Original Message-----
> From: Stuart McGraw [mailto:smcg4191frii.com]

> Sent: Donnerstag, 30. März 2006 08:49
> To: usershttpd.apache.org
> Subject: [usershttpd] IndexIgnore list
> 
> How do you reset the IndexIgnore list?
> My httpd.conf (apache-2.2 on Fedora Core 5) has the
line:
> 
>   IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v
*,t
> 
> The is fine for all directories except one (and it's
subdirs).
> For that one I need to have those ignored files appear
in
> the directory listing.
> 
> The docs say you can only add to the list -- surely
there
> must be some way to reset it?!?!?  

Why "surely"? The docs are pretty clear that it
is an additive list. A quick look at the source
(modules/generators/mod_autoindex.c, look for add_ignore
method) shows that it just pushes the pattern onto an array
every time it finds an IndexIgnore.

Having the ability to reset or subtract from the list would
be "nice" but seems like it would be quite
complicated to add to the code in a robust way (you'd also
need a new directive). Some developers might complain of
feature creep...

Wacky off-the-top-of-my-head, untried, untested
"workarounds":

- Make a separate VH, on port 8080 for example, with docroot
set to the target dir and have no IndexIgnore in this VH.
Then, in the main VH, proxy requests for that dir to the
port 8080 VH. Maybe that would work? 

- a one-off hack to suit your situation: Extend the
add_ignore method so that if it encounters a certain pattern
(eg, CLEAR_INDEX_IGNORE_LIST), then it empties the array.
You could then put "IndexIgnore
CLEAR_INDEX_IGNORE_LIST" in the directory you want to
free up. [NB - no idea if this would really work - it might
clear the list for all dirs!)

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be
ignored.  





> I have tried everything
> I can think off but the directory still inherits from
it's parent
> and I can add to the list but not remove anything.
> 
> After four hours I decided its time to ask for help

> 
>
------------------------------------------------------------
---------
> The official User-To-User support forum of the Apache
HTTP 
> Server Project.
> See <URL:http://htt
pd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribehttpd.apache.org
>    "   from the digest:
users-digest-unsubscribehttpd.apache.org
> For additional commands, e-mail: users-helphttpd.apache.org
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation.
Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der
SWX Gruppe. This e-mail is of a private and personal nature.
It is not related to the exchange or business activities of
the SWX Group. Le présent e-mail est un message privé et
personnel, sans rapport avec l'activité boursière du Groupe
SWX.
 
 
This message is for the named person's use only. It may
contain confidential, proprietary or legally privileged
information. No confidentiality or privilege is waived or
lost by any mistransmission. If you receive this message in
error, please notify the sender urgently and then
immediately delete the message and any copies of it from
your system. Please also immediately destroy any hardcopies
of the message. You must not, directly or indirectly, use,
disclose, distribute, print, or copy any part of this
message if you are not the intended recipient. The sender's
company reserves the right to monitor all e-mail
communications through their networks. Any views expressed
in this message are those of the individual sender, except
where the message states otherwise and the sender is
authorised to state them to be the views of the sender's
company.

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

IndexIgnore list
user name
2006-03-30 09:41:05
> Boyle Owen wrote: 
> > Stuart McGraw wrote:
> > How do you reset the IndexIgnore list?
> > My httpd.conf (apache-2.2 on Fedora Core 5) has
the line:
> > 
> >   IndexIgnore .??* *~ *# HEADER* README* RCS CVS
*,v *,t
> > 
> > The is fine for all directories except one (and
it's subdirs).
> > For that one I need to have those ignored files
appear in
> > the directory listing.
> > 
> > The docs say you can only add to the list --
surely there
> > must be some way to reset it?!?!?  
> 
> Why "surely"? The docs are pretty clear
that it is an additive list. A quick look at the source 
> (modules/generators/mod_autoindex.c, look for
add_ignore method) shows that it just pushes the pattern
onto an array 
> every time it finds an IndexIgnore.
> 
> Having the ability to reset or subtract from the list
would be "nice" but seems like it would be quite
complicated to add 
> to the code in a robust way (you'd also need a new
directive). Some developers might complain of feature
creep...

Please take my comment in the context on someone using
Apache 
for the first time, starting yesterday.  I am pretty
clueless.
 I said "surely" because without the ability to
override the 
list in subdirectories, it seems like its usefulness is
hugely 
limited.  There is no natural reason that subdirectories
would 
always want to have more restrictions on what files are
shown, 
than their parent's directories is there?  And it seems
unreasonable 
to require a directory hierarchy to be determined by which
ones 
have the most restrictive ignore lists.  So, the ignore list
is 
in generally only going to be useful if it is a global
setting, 
applied to all directories.  To me this seems unnaturally
restrictive, 
to a degree that I found it hard to believe that a product
as 
mature as Apache would have a restriction like this.  But
perhaps 
I misunderstand it's purpose...I am a very much a newbie.

> Wacky off-the-top-of-my-head, untried, untested
"workarounds":
> 
> - Make a separate VH, on port 8080 for example, with
docroot set to the target dir and have no IndexIgnore in
this VH. 
> Then, in the main VH, proxy requests for that dir to
the port 8080 VH. Maybe that would work? 

I'll look into this tomorrow but it seems like driving 100
miles up 
one side of a river, crossing, and driving back down the
other 
side, because there is no local bridge.  :-(

> - a one-off hack to suit your situation: Extend the
add_ignore method so that if it encounters a certain pattern
(eg, 
> CLEAR_INDEX_IGNORE_LIST), then it empties the array.
You could then put "IndexIgnore
CLEAR_INDEX_IGNORE_LIST" in the 
> directory you want to free up. [NB - no idea if this
would really work - it might clear the list for all dirs!)

You're talking about modifying the code and rebuilding?

Hmm, I think I will rethink my requirements.  But I do very
much 
appreciate getting your thoughts on this.


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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )