[opensuse] Apache SSL not working after adding IP and port to listen.conf
![](https://seccdn.libravatar.org/avatar/6dbd124e7bd14fb899ae5f1d8e9b48f0.jpg?s=120&d=mm&r=g)
Hello, I added a new ssl vhosts entry, using a template from a working ssl vhost and modified it appropriately or so I thought since the other ssl vhosts that are on the system are working correctly, however when I reload rcapache2 I get the following error;
From .../apache2/error_log; [error] (EAI 2)Name or service not known: Cannot resolve host name 10.50.40.258 --- ignoring!
When I add the IP to listen.conf and attempt to reload, apache fails to load
with the following error:
<snip>
rcapache2 reload;
... [crit] (EAI 2)Name or service not known: alloc_listener: failed to set
up sockaddr for 10.50.40.258
Syntax error on line 25 of /etc/apache2/listen.conf:
Listen setup failed
The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
unused
<snip>
This is a portion of listen.conf.
<snip>
Listen 80
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
#Listen 443
Listen 10.50.40.258:443 <------Line 25 looks okay to me
Listen 10.50.40.252:443
Listen 10.50.40.254:443
</IfModule>
</IfDefine>
</IfDefine>
<snip>
When I remove or comment out line 25, apache starts. Any ideas what is going wrong? I have two ssl sites that work fine on the same box. Many thanks in advance. ~James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/61c957d03457af4e241dec7e0baa312c.jpg?s=120&d=mm&r=g)
On Fri, 2007-07-13 at 15:06 -0700, James D. Parra wrote:
Hello,
I added a new ssl vhosts entry, using a template from a working ssl vhost and modified it appropriately or so I thought since the other ssl vhosts that are on the system are working correctly, however when I reload rcapache2 I get the following error;
From .../apache2/error_log; [error] (EAI 2)Name or service not known: Cannot resolve host name 10.50.40.258 --- ignoring!
Since 10.50.40.255 would be the highest adr you can assign, 10.50.40.258 will ofcause fail. assign an adr lower than that will sowl your problem.
When I add the IP to listen.conf and attempt to reload, apache fails to load with the following error:
<snip> rcapache2 reload; ... [crit] (EAI 2)Name or service not known: alloc_listener: failed to set up sockaddr for 10.50.40.258 Syntax error on line 25 of /etc/apache2/listen.conf: Listen setup failed
The command line was: /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL unused <snip>
This is a portion of listen.conf.
<snip> Listen 80
<IfDefine SSL> <IfDefine !NOSSL> <IfModule mod_ssl.c>
#Listen 443 Listen 10.50.40.258:443 <------Line 25 looks okay to me Listen 10.50.40.252:443 Listen 10.50.40.254:443
</IfModule> </IfDefine> </IfDefine> <snip> ~~~~~~
When I remove or comment out line 25, apache starts. Any ideas what is going wrong? I have two ssl sites that work fine on the same box.
Many thanks in advance.
~James
-- Yet another mail from JULLE/JULLE1st aka Joel Young julle1st@2b-young.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/7aeddadc5c752bf9574e61e0750f1315.jpg?s=120&d=mm&r=g)
Fri, 13 Jul 2007, by Jamesp@MusicReports.com:
Hello,
I added a new ssl vhosts entry, using a template from a working ssl vhost and modified it appropriately or so I thought since the other ssl vhosts that are on the system are working correctly, however when I reload rcapache2 I get the following error;
From .../apache2/error_log; [error] (EAI 2)Name or service not known: Cannot resolve host name 10.50.40.258 --- ignoring! ~~~~
When I add the IP to listen.conf and attempt to reload, apache fails to load with the following error:
<snip> rcapache2 reload; ... [crit] (EAI 2)Name or service not known: alloc_listener: failed to set up sockaddr for 10.50.40.258 ^^^ You're 'Bullocking' an IPv4 address. Try a range of 1..254 instead.
Listen 10.50.40.258:443 <------Line 25 looks okay to me
Not really.. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 10.2 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.20 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
James D. Parra
-
Joel Young
-
Theo v. Werkhoven