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 2009/08/28 04:02:46 UTC

DO NOT REPLY [Bug 47754] New: MultiViewsMatch does not apply in a section

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

           Summary: MultiViewsMatch does not apply in a <Location> section
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_negotiation
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: andrew@pimlott.net


--- Comment #0 from Andrew Pimlott <an...@pimlott.net> 2009-08-27 19:02:45 PDT ---
I have a configuration directive

<Location />
    AddHandler cgi-script cgi
    Options +ExecCGI +MultiViews
    MultiViewsMatch Handlers
</Location>

so that I can access cgi scripts without extensions, eg http://localhost/foo
runs foo.cgi in the document root.  The first two directives take effect, as
http://localhost/foo.cgi works as expected.  But when I access just /foo, I get
the "None could be negotiated" error.  It seems that the MultiViewsMatch
Handlers directive is not applied.  If I instead change Location to a
Directory, it works:

<Directory /home>
    AddHandler cgi-script cgi
    Options +ExecCGI +MultiViews
    MultiViewsMatch Handlers
</Directory>

Now, http://localhost/foo works.  So it looks as though MultiViewsMatch has no
effect in a Location section.

Andrew

-- 
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@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47754] MultiViewsMatch does not apply in a section

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47754


Will Rowe <wr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
           Platform|PC                          |All
            Version|2.2.3                       |2.3-HEAD
         Resolution|INVALID                     |
         OS/Version|Linux                       |All
           Severity|normal                      |minor


--- Comment #3 from Will Rowe <wr...@apache.org> 2009-08-27 21:24:44 PDT ---
Reopening as a docs bug; fair suggestion, thanks.

-- 
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@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47754] MultiViewsMatch does not apply in a section

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47754



--- Comment #2 from Andrew Pimlott <an...@pimlott.net> 2009-08-27 21:15:26 PDT ---
Thanks for the quick reply!  The documentation says that MultiViewsMatch is
allowed in directory context and doesn't mention the limitation.  May I suggest
adding,

    MultiViewsMatch is not allowed in a <Location> or <LocationMatch> section.

It would be even better if the configuration parser reported this problem
instead of silently ignoring the directive.  That would have saved me some
confusion.

-- 
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@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47754] MultiViewsMatch does not apply in a section

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47754

Dan Poirier <po...@pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #4 from Dan Poirier <po...@pobox.com> 2009-09-14 09:33:42 PDT ---
Did both - configuration fails if MultiviewsMatch is in a
Location or LocationMatch section, and added a note to the
doc.

Committed to trunk as r814728.

-- 
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@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47754] MultiViewsMatch does not apply in a section

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47754

--- Comment #5 from Andrew Pimlott <an...@pimlott.net> 2009-09-15 09:06:30 PDT ---
Great, thanks!

-- 
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@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47754] MultiViewsMatch does not apply in a section

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47754


Will Rowe <wr...@apache.org> changed:

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


--- Comment #1 from Will Rowe <wr...@apache.org> 2009-08-27 19:23:23 PDT ---
Behavior is by design.  <Location > refers to a user request, and does
not apply to a filesystem.

Don't abuse <Location > when you mean <Files > or <Directory >

-- 
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@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 47754] MultiViewsMatch does not apply in a section

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47754

Igor Galić <i....@brainsware.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Igor Galić <i....@brainsware.org> 2010-11-04 14:06:05 EDT ---
Added more explanation: r1031111
Apparently Options +MultiViews is ignored in any context other than <Directory
> too.

-- 
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@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org