Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Bugs

[Bug 47184] Feature request: DirectoryHandler

 

 

Apache bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

Jun 10, 2009, 11:05 AM

Post #1 of 7 (506 views)
Permalink
[Bug 47184] Feature request: DirectoryHandler

https://issues.apache.org/bugzilla/show_bug.cgi?id=47184


Dan Poirier <poirier[at]pobox.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |enhancement




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

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


bugzilla at apache

Jun 15, 2009, 10:09 AM

Post #2 of 7 (463 views)
Permalink
[Bug 47184] Feature request: DirectoryHandler [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47184





--- Comment #4 from Dan Poirier <poirier[at]pobox.com> 2009-06-15 10:09:27 PST ---
It seems to me that this has more to do with mapping than handlers. So maybe

DefaultMapping index.php

would be more accurate?

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

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


bugzilla at apache

Jun 15, 2009, 10:21 AM

Post #3 of 7 (462 views)
Permalink
[Bug 47184] Feature request: DirectoryHandler [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47184





--- Comment #5 from Rich Bowen <rbowen[at]apache.org> 2009-06-15 10:21:54 PST ---
Just based on preference, I'd rather do

DefaultMapping index.php

than have to do

Action front-handler index.php
DefaultHandler front-handler

You know, one less line.

As far as whether this is a handler or a mapping, I don't care a whole lot. If
this is a semantic question, I'll let you guys work that out. From a
convenience perspective, I'd really rather have one line than two.

(I think that users tend to find Action confusing - although I'm not entirely
sure why. I think it has to do with defining an alias and then using that alias
later. The same confusion exists for LogFormat and CustomLog.)

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

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


bugzilla at apache

Jun 16, 2009, 6:49 AM

Post #4 of 7 (454 views)
Permalink
[Bug 47184] Feature request: DirectoryHandler [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47184





--- Comment #6 from Dan Poirier <poirier[at]pobox.com> 2009-06-16 06:49:17 PST ---
I'm picturing three new directives (there doesn't appear to be a DefaultHandler
directive, and it seems like a useful concept):


DefaultHandler handler-name

Change the default request handler from Apache's built-in "default-handler"
to handler-name.


DefaultMapping index.php

If the request would otherwise result in a 404 response, use the file index.php
to handle it. The URI is not changed. This is equivalent to

Action new-handler-name index.php
DefaultHandler new-handler-name

except that no handler named "new-handler-name" is actually defined.

Is "request would otherwise result in a 404 response" the best way to specify
the behavior here? Maybe it would be better to just describe it as a shortcut
for using Action and DefaultHandler.


SetMapping index.php

Use the file index.php to handle all requests. The URI is not changed. This
is equivalent to

Action new-handler-name index.php
SetHandler new-handler-name

except that no handler named "new-handler-name" is actually defined.

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

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


bugzilla at apache

Jun 16, 2009, 9:01 AM

Post #5 of 7 (455 views)
Permalink
[Bug 47184] Feature request: DirectoryHandler [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47184





--- Comment #7 from Rich Bowen <rbowen[at]apache.org> 2009-06-16 09:01:15 PST ---
I *think* that what you're describing does what I want. The only point of
confusion is your remark about "... would otherwise be a 404." Requests for
existing files (CSS, images, etc) need to end up going to those files, so
there's some "does it exist" checking implied in the feature request. See the
rewriterule implementation in the original ticket. I think that what you're
suggesting will handle that, but I'm not 100% sure.

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

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


bugzilla at apache

Jun 16, 2009, 10:41 AM

Post #6 of 7 (455 views)
Permalink
[Bug 47184] Feature request: DirectoryHandler [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47184





--- Comment #8 from Dan Poirier <poirier[at]pobox.com> 2009-06-16 10:41:49 PST ---
It occurs to me that replacing the default-handler isn't what we want here,
since that's what would serve the static files for us. Which I think brings us
back to mapping.

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

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


bugzilla at apache

Jun 16, 2009, 3:00 PM

Post #7 of 7 (454 views)
Permalink
[Bug 47184] Feature request: DirectoryHandler [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=47184





--- Comment #9 from Nick Kew <nick[at]webthing.com> 2009-06-16 15:00:21 PST ---
Committed fix in r785425 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=785425 ). It's different to what we discussed yesterday:
should be simpler for users to grok.

Given whose feature request this is, I think I can leave the documentation to
you as already discussed :-)

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

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

Apache bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.