You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by K a z <ik...@hotmail.com> on 2003/02/26 10:29:03 UTC
[users@httpd] 'Listen' directive not working properly?
I've used apache for awhile, and am no stranger to UNIX. But I'm having a
really bad time trying to use the "Listen" directive.
I am trying to setup a couple different apache servers. One is a no-frills
slimmed down apache server thats intended to serve static pages fast.
The other has all the bells & whistles (mod_php, mod_perl, openSSL etc).
I am using name based virts on both machines. I am trying to "bind" some ip
addresses to one server and some ip addressess to the other.
Let's not even worry about the other server though, as I cant get past the
first part.
Here's what I'm trying to do:
(Real Ips foobar'ed to protect the innocent) ;)
Listen 11.22.33.227:80
Listen 11.22.33.228:80
Listen 11.22.33.229:80
Listen 11.22.33.233:80
Then later down by the virts I have:
NameVirtualHost *
and starting each virt set with a <virtualhost *>
Now, WITHOUT the 'Listen' entries, the server will run fine.. but it will be
bound to ALL interfaces/ips on the machine. But what I am trying to do is
SPECIFIY the ip's that THIS apache server should be listening on.
Anyway when I do it WITH the Listen statements above, I get the following
critical error in the logs:
[crit] (49)Can't assign requested address: make_sock: could not bind to
address 11.22.33.233 port 80
(basically it will report the LAST one... if I only have ONE 'Listen
ip:port' entry, then it will have the error message above with that ip,
ortherwise it will report the last one.
Any suggestions here?
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] 'Listen' directive not working properly?
Posted by Nikunj Virani <ni...@netsurf.co.in>.
Problem is with two apache trying to listen on same IP. I suppose ur another
apache is also listening on 11.22.33.233 port 80 which is causing problem. 2
Apaches cannot listen on same IPS and same ports. Just comment out the line
containing:
Listen 11.22.33.233:80
and apache will work fine. Please also specify which ips and ports do u want
individual apaches to listen at in case of further problems.
Regards,
Nikunj
----- Original Message -----
From: "K a z" <ik...@hotmail.com>
To: <us...@httpd.apache.org>
Sent: Wednesday, February 26, 2003 2:59 PM
Subject: [users@httpd] 'Listen' directive not working properly?
>
> I've used apache for awhile, and am no stranger to UNIX. But I'm having a
> really bad time trying to use the "Listen" directive.
>
> I am trying to setup a couple different apache servers. One is a no-frills
> slimmed down apache server thats intended to serve static pages fast.
>
> The other has all the bells & whistles (mod_php, mod_perl, openSSL etc).
>
> I am using name based virts on both machines. I am trying to "bind" some
ip
> addresses to one server and some ip addressess to the other.
> Let's not even worry about the other server though, as I cant get past the
> first part.
>
> Here's what I'm trying to do:
>
> (Real Ips foobar'ed to protect the innocent) ;)
>
> Listen 11.22.33.227:80
> Listen 11.22.33.228:80
> Listen 11.22.33.229:80
> Listen 11.22.33.233:80
>
> Then later down by the virts I have:
>
> NameVirtualHost *
> and starting each virt set with a <virtualhost *>
>
> Now, WITHOUT the 'Listen' entries, the server will run fine.. but it will
be
> bound to ALL interfaces/ips on the machine. But what I am trying to do is
> SPECIFIY the ip's that THIS apache server should be listening on.
>
> Anyway when I do it WITH the Listen statements above, I get the following
> critical error in the logs:
>
> [crit] (49)Can't assign requested address: make_sock: could not bind to
> address 11.22.33.233 port 80
>
> (basically it will report the LAST one... if I only have ONE 'Listen
> ip:port' entry, then it will have the error message above with that ip,
> ortherwise it will report the last one.
>
> Any suggestions here?
>
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>