>Number: 4210 >Category: general >Synopsis: Identical (same IP & port) Listen directives hose Apache >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Apr 7 16:50:01 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.1 >Environment: BSD/OS 4.0 through M400-022; standard compiler >Description: Let's say I do
Listen foo.alink.net:80 Listen bar.alink.net:80 where foo and bar are CNAMEs for the same thing. This screws Apache up in ways that, I'm afraid, are a little hard to characterize. I get a lot of these in the log: [Sat Apr 3 04:11:47 1999] [error] (38)Socket operation on non-socket: accept: (client socket) and Apache was not answering on the IP and port indicated. >How-To-Repeat: Two identical Listen directives should do it. >Fix: I think users should be allowed to do this. Even if hostnames resolve to the same IP address, having them all in httpd.conf is a useful way of indicating what duties the machine's web server performs (where those duties correspond to hostnames). If this is not going to be allowed, though, it should fail better, perhaps by being caught by `apachectl configtest'. Thanks. >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [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! ]