[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-bugs
Subject: DO NOT REPLY [Bug 24243] New: -
From: bugzilla () apache ! org
Date: 2003-10-30 9:20:00
[Download RAW message or body]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24243>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24243
'Parent directory' link improvement ('IndexIgnoreRemove')
Summary: 'Parent directory' link improvement
('IndexIgnoreRemove')
Product: Apache httpd-2.0
Version: 2.0.47
Platform: PC
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: mod_autoindex
AssignedTo: bugs@httpd.apache.org
ReportedBy: rfaura@bassy.net
I'm going to put here the summary of a very recent Apache users mailing list
discussion about mod_autoindex between Robert Andersson and me, Rafael Faura:
1) [Rafael Faura] --> I'm using Apache 2.0.47 with Windows 2003 Standard
Edition. Before posting to this mailing list i've readed Apache docs 2.1
(http://httpd.apache.org/docs-2.1/) and searched Google for possible answers
but without luck. My question is related with dynamic listings that Apache show
when somebody access to a directory that doesn't have an 'index' file. I have
the next folder structure:
CAE
|
|_ Updates
|
|_ Old
I want that 'Updates' and 'Old' listings have a 'Parent Directory' link on
top (as usual) but i don't want that 'CAE' listing show that 'Parent
Directory' link. I've tried several configurations with 'IndexIgnore ..'
option into 'CAE', 'Updates' and 'Old' directives but without luck. I'm out
of ideas...
2) [Robert Andersson] --> It seems you're out of luck. You can disable the
parent entry by using "IndexIgnore ..", but as far as I can see, there is no
way "unignore" it.
mod_autoindex is intentionally not very flexible, because what it does is soo
simple. If you really don't want the parent entry in the listing, you can make
a Perl or PHP script rather quick, that behaves and look exactly like you want.
3) [Rafael Faura] --> Well, seems like I should learn some PHP and Perl to make
such script, anyway thanks for your reply. Maybe a little suggestion for future
Apache/mod_autoindex versions: allow to put 'Parent Directory' link per
directory instead how is done now (parent entry always appears).
4) [Robert Andersson] --> The problem is not specific to the "parent directory"
entry, but general in that (it seems) one cannot remove entries previously
added to the IndexIgnore list higher up in the directory tree. There should
perhaps be an "IndexIgnoreRemove" directive, in which case you could do:
<Directory /path/to/docroot/CAE>
Options +Indexes
IndexIgnore ..
</Directory>
<Directory /path/to/docroot/CAE/Updates>
IndexIgnoreRemove ..
</Directory>
---------------------
That īs all :)
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic