Bug 112153 - Server refuses to start with Listen 127.0.0.1:80
Summary: Server refuses to start with Listen 127.0.0.1:80
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: apache
Version: 2.1
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-12-15 14:22 UTC by Nick Strugnell
Modified: 2007-11-30 22:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-02-06 16:16:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nick Strugnell 2003-12-15 14:22:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030922

Description of problem:
When configuring a server to only listen to port 80 on the loopback
interface using 'Listen 127.0.0.1:80' this causes the following error
at startup:

(98)Address already in use: make_sock: could not bind to address
127.0.0.1 port 80

Version-Release number of selected component (if applicable):
1.3.27-6.ent

How reproducible:
Always

Steps to Reproduce:
1.Edit httpd.conf and add the Listen line shown above
2. Start server
3.
    

Actual Results:  Server fails to start - error appears in syslog

Expected Results:  Server start

Additional info:

This is caused by the repeat Listen directive at line 397. Comment
this out and things should be fine.

The problem is really one of the way the httpd.conf file is commented
- the commented listen directives at line 175 give no indication that
there is an uncommented directive at 397.

Comment 1 Joe Orton 2004-02-06 16:16:49 UTC
It's a good point, but changing the default httpd.conf in an erratum
is somewhat annoying since the new file would be created as
httpd.conf.rpmnew for anyone who updated.  Certainly just to fix a
comment, it's not worth it... so I'll just mark this
CLOSED->CURRENTRELEASE since the httpd.conf shipping in RHEL3 doesn't
have this issue.


Note You need to log in before you can comment on or make changes to this bug.