You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by bu...@apache.org on 2019/09/02 15:29:22 UTC

[Bug 63717] New: Meaning of _default_ seems to have changed in 2.4, yet not reflected in documentation

https://bz.apache.org/bugzilla/show_bug.cgi?id=63717

            Bug ID: 63717
           Summary: Meaning of _default_ seems to have changed in 2.4, yet
                    not reflected in documentation
           Product: Apache httpd-2
           Version: 2.4.41
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Documentation
          Assignee: docs@httpd.apache.org
          Reporter: apache@stefanseidel.info
  Target Milestone: ---

In the docs for <VirtualHost>:
https://httpd.apache.org/docs/2.4/mod/core.html#virtualhost it is said that
_default_ is an alias for *. This has changed from 2.2, where _default_
indicated a "catch-all" for unmatched hosts.

I seems that the pages
https://httpd.apache.org/docs/2.4/vhosts/examples.html
and
https://httpd.apache.org/docs/2.4/vhosts/details.html
have not been brought up to date with this information.

Some testing seems to confirm that _default_ is nothing special anymore and if
in doubt, Apache HTTPD 2.4 will use the first <VirtualHost> declaration if the
request hostname does not match any declared ServerName or ServerAlias.

Is this correct, and if so, can the documentation be adjusted accordingly?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


[Bug 63717] Meaning of _default_ seems to have changed in 2.4, yet not reflected in documentation

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

Stefan Seidel <ap...@stefanseidel.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Stefan Seidel <ap...@stefanseidel.info> ---
Well, in 2.2 the <VirtualHost> docs say:
> "The string _default_, which is used only with IP virtual hosting to catch unmatched IP addresses."

So this seems a difference to me, but I have never actively used it so I cannot
vouch for it.

But yes, I think the references to _default_ can be removed from the
documentation. I tried all kinds of combinations and it doesn't seem to have
any special meaning, and a look through the source code also only reveals that
it is an alias of "*" (line 190 of vhost.c)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


[Bug 63717] Meaning of _default_ seems to have changed in 2.4, yet not reflected in documentation

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

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Eric Covener <co...@gmail.com> ---
As far as I can tell _default_ was not treated differently from * in 2.2
either. Do you have any results that imply the references to _default_
shouldn't just be removed from those topics?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org