httpd socket and port errors

5 posts / 0 new
Last post
#1 Thu, 02/19/2009 - 10:37
mdtiberi

httpd socket and port errors

I am receiving the following error from the httpd log:

[error] (9)Bad file descriptor: apr_socket_accept: (client socket)

Executing apachectl configtest gives:

[Thu Feb 19 12:45:47 2009] [error] VirtualHost default:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results Syntax OK

I also cannot access port 80 and get a Forbidden error. Seems like I need to correct the default port from 443 to 80.

Thu, 02/19/2009 - 10:52
andreychek

In your Apache config, what does your NameVirtualHost line(s) look like?

And what about your VirtualHost lines?

Generally, you'd have something like:

[code:1]
NameVirtualHost x.y.z.q:80

<VirtualHost x.y.z.q:80>
...
</VirtualHost>
[/code:1]

It sounds like it's finding some entries with *'s rather than IP addresses though, which may be confusing it.
-Eric

Thu, 02/19/2009 - 11:42
mdtiberi

Curiously enough it has two entries. This is a fresh install so no changes were done to the config file. Perhaps I should delete the first entry then?

NameVirtualHost *
NameVirtualHost 66.126.10.137:80

Thu, 02/19/2009 - 11:50 (Reply to #3)
andreychek

Yeah, delete or comment out that first entry, and restart Apache -- hopefully that'll do the trick!
-Eric

Thu, 02/19/2009 - 12:59
mdtiberi

got it, thnaks

Topic locked