Re: Apaching binding to *:* ?? (Weirdness)

2004-07-26 Thread Nelis Lamprecht
On Mon, 2004-07-26 at 01:04, Bill Moran wrote:

 I'm having some weird action from Apache.  It seems that every apache process
 binds to *:* twice, in addition to IP:80 and IP:443.  Has anyone seen this
 before?  This is Apache 1.3.28 (although an upgrade is on the schedule)  I
 had _wanted_ to test the new version of Apache in the jail prior to upgrading,
 but I'm not so sure that's going to work.
 
 Anyone seen this before?

Are you not confusing local addresses to foreign ? Each local address
will have a foreign address as far as I understand it. What is the
output of sockstat -4l ?

From sockstat(1)

LOCAL ADDRESS For Internet sockets, this is the address the local end
of the socket is bound to (see getsockname(2)).  For bound UNIX sockets,
it is the socket's filename.  For other UNIX sockets, it is a right
arrow followed by the endpoint's filename, or ``??'' if the endpoint
could not be
determined. 
FOREIGN ADDRESS (Internet sockets only) The address the foreign end of
the socket is bound to (see getpeername(2)).

-- 
Nelis Lamprecht
PGP: http://www.8ball.co.za/pgpkey/nelis.asc
Unix IS user friendly.. It's just selective about who its friends are.


signature.asc
Description: This is a digitally signed message part


Re: Apaching binding to *:* ?? (Weirdness)

2004-07-26 Thread Jason Cribbins
On Sun, 2004-07-25 at 19:04, Bill Moran wrote:
 I'm having some weird action from Apache.  It seems that every apache process
 binds to *:* twice, in addition to IP:80 and IP:443.  Has anyone seen this
 before?  This is Apache 1.3.28 (although an upgrade is on the schedule)  I
 had _wanted_ to test the new version of Apache in the jail prior to upgrading,
 but I'm not so sure that's going to work.
 
 Anyone seen this before?

Actually thats default behavior for apache and many other daemons.  You can limit what 
IPs it listens on in the httpd.conf file

Jason

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apaching binding to *:* ?? (Weirdness)

2004-07-26 Thread Bill Moran
Jason Cribbins [EMAIL PROTECTED] wrote:

 On Sun, 2004-07-25 at 19:04, Bill Moran wrote:
  I'm having some weird action from Apache.  It seems that every apache process
  binds to *:* twice, in addition to IP:80 and IP:443.  Has anyone seen this
  before?  This is Apache 1.3.28 (although an upgrade is on the schedule)  I
  had _wanted_ to test the new version of Apache in the jail prior to upgrading,
  but I'm not so sure that's going to work.
  
  Anyone seen this before?
 
 Actually thats default behavior for apache and many other daemons.  You can
 limit what IPs it listens on in the httpd.conf file

I guess I should've been smarter and included some of the Apache config:

...
Listen 209.235.192.67:80

##
##  SSL Support
##
##  When we also provide SSL we have to listen to the
##  standard HTTP port (see above) and to the HTTPS port
##
IfDefine SSL
#Listen 209.235.192.67:80
Listen 209.235.192.67:443
#Port 443
/IfDefine
...

This is my current attempt to get things acting as I would like.  As you
can see by the commented out parts, I've tried a number of other combinations.

There are not other Listen, Port, or BindAddress declarations in the config.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apaching binding to *:* ?? (Weirdness)

2004-07-26 Thread Bill Moran
Nelis Lamprecht [EMAIL PROTECTED] wrote:

 On Mon, 2004-07-26 at 01:04, Bill Moran wrote:
 
  I'm having some weird action from Apache.  It seems that every apache process
  binds to *:* twice, in addition to IP:80 and IP:443.  Has anyone seen this
  before?  This is Apache 1.3.28 (although an upgrade is on the schedule)  I
  had _wanted_ to test the new version of Apache in the jail prior to upgrading,
  but I'm not so sure that's going to work.
  
  Anyone seen this before?
 
 Are you not confusing local addresses to foreign ? Each local address
 will have a foreign address as far as I understand it. What is the
 output of sockstat -4l ?

Don't think so.  Here's a snippet of the above command:
...
www  httpd  941   4  tcp4   *:*   *:*
www  httpd  941   5  tcp4   *:*   *:*
www  httpd  941   16 tcp4   209.235.192.67:443*:*
www  httpd  941   17 tcp4   209.235.192.67:80 *:*
...

Every apache process has those four listening entries.

Thanks for the feedback.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Apaching binding to *:* ?? (Weirdness)

2004-07-25 Thread Bill Moran

I have a FreeBSD 5.1 server (can't upgrade to 5.2 yet, until the em driver is
fixed)  and I'm getting it ready to set up a jail for a staging environment.

I'm having some weird action from Apache.  It seems that every apache process
binds to *:* twice, in addition to IP:80 and IP:443.  Has anyone seen this
before?  This is Apache 1.3.28 (although an upgrade is on the schedule)  I
had _wanted_ to test the new version of Apache in the jail prior to upgrading,
but I'm not so sure that's going to work.

Anyone seen this before?

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]