You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/01/17 17:26:02 UTC

DO NOT REPLY [Bug 38303] New: - mod_dir should be able to hide directory index files

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38303>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38303

           Summary: mod_dir should be able to hide directory index files
           Product: Apache httpd-2
           Version: 2.2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_dir
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mail@joachim-selke.de


I want to have canonical URIs and use mod_dir for directory indexes.

To "create" the URI http://www.example.org/foo/ I put a file named index.html
into the directory $DOCUMENT_ROOT/foo/. Now there is the problem that
http://www.example.org/foo/ and http://www.example.org/foo/index.html refer to
the same physical resource. So I have redirect the latter one to
http://www.example.org/foo/ with mod_redirect or mod_alias.

This is an ugly solution because there is no need to "create" the URI
http://www.example.org/foo/index.html along with http://www.example.org/foo/. I
think it would be better if a status code of 404 is returned for
http://www.example.org/foo/index.html.

Adding a config statement "HideDirectoryIndex" to mod_dir would solve this problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38303] - mod_dir should be able to hide directory index files

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38303>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38303





------- Additional Comments From wrowe@apache.org  2006-01-17 21:45 -------

  Your proposal also massively increases processing time, because EVERY request
  would have to perform a mod_dir lookup walking the directory, to determine 
  *if* the file listed is -the- directory match.  Multiviews makes this a total
  nightmare scenario.

  The converse solution isn't so bad.  If you prefer to have

    http://example.com/foo/
    http://example.com/foo/index.html

  both map to the singular resource

    http://example.com/foo/index.html

  by responding to http://example.com/foo/ external redirect to .../index.html
  it would not hurt all performance (except with the external redirect roundtrip
  processing on exact hits to .../foo/).  HOWEVER, mapping to index.html may 
  interfere with mod_dav directory properties, so you must be quite careful 
  in crafting any such patch, and test it thoroughly with mod_dav running.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38303] - mod_dir should be able to hide directory index files

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38303>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38303


mail@joachim-selke.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From mail@joachim-selke.de  2007-02-03 04:41 -------
I agree. Because of the increased processing time this is not a resonable
addition to mod_dir. I will close the bug.

For those who are interested in a possible solution of the problem described in
my bug report: Since version 2.2 it is possible to return the status code 404
via the R=... flag of mod_rewrite. This feature can be used to hide the "index
files".

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org