You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Herko ter Horst <he...@aidministrator.nl> on 2000/02/08 13:02:52 UTC

general/5722: Hostnames with underscores fail to work with VirtualHost directive

>Number:         5722
>Category:       general
>Synopsis:       Hostnames with underscores fail to work with VirtualHost directive
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Feb 08 04:10:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     herko.ter.horst@aidministrator.nl
>Release:        1.3.11
>Organization:
apache
>Environment:
Solaris 2.7
>Description:
Our configuration from 1.3.6 included this VirtualHost setup:

NameVirtualHost 111.222.333.444
<VirtualHost 111.222.333.444>
    ServerName www_ourname_com
    ...
</VirtualHost>
<VirtualHost 111.222.333.444>
    ServerName news_ourname_com
    ....
</VirtualHost>

With www_ourname_com and news_ourname_com, as well as www_ourname_com.ourdomain.com and news_ourname_com.ourdomain.com, being valid DNS names.
However, with 1.3.11 this fails to work. The only way to get it working again is to use virtual hosts with no underscores in the name.

The error is a Bad request (Client sent malformed Host header).
>How-To-Repeat:
An adaptation of the sample configuration above should reproduce the problem.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]