httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38297] New: - <Location> in main server config effective in <VirtualHost>
Date Tue, 17 Jan 2006 07:51:21 GMT
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=38297>.
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=38297

           Summary: <Location> in main server config effective in
                    <VirtualHost>
           Product: Apache httpd-2
           Version: 2.2.0
          Platform: Other
               URL: http://httpd.apache.org/docs/2.2/mod/mod_status.html
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_status
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mmclagan@invlogic.com


mod_status and mod_info both suggest the same basic configuration code, namely:

<Location /server-status>
  SetHandler server-status
  Order Deny,Allow
  Deny from all
  Allow from .foo.com
</Location>

Neither mentions that this configuration makes those accessible from all the
virtual hosts defined.  

There doesn't seem to be a way to configure a <Location> in the main server that
is unique to that main server, without having to then use the same definition in
each virtual host to reverse the definition, ie:

<Location /server-status>
   SetHandler None
</Location>

Since <Location> can't be used in .htaccess or <Directory> blocks, and <Files>
looks for existing file system object (although you can create false entries,
that requires the use of "Action <name> <script> virtual" and neither of the two
listed mods provide a similar method.

I'm sure there's arguments to be made on both sides of the issue as to whether
this constitutes a bug or not, especially since it could be considered a
"feature" in some respects and based on the legacy of how this is interpreted,
but it doesn't seem to be documented as such, either in the <Location> directive
entry or the mod_ pages.  

IMHO, there should be a reasonably simple manner (and it may just be that I'm
too tired or focused to see it) to implement both _info and _status ONLY for the
main server's IP without having it carry over to all the vhosts.  This is
especially true if one of the vhosts wants to use the particular URL within it's
own space for a completely different purpose, especially if it exists in the
file system, ie <Location /info>SetHandler server-info</Location> in main config
and a vhost uses http://www.vhost.com/info/index.html to hold an actual page.  

I know.  Change names.   Not a simple thing to do with dozens, even hundreds of
scripts, pages, etc referencing both.

-- 
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


Mime
View raw message