httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Khine <nor...@khine.net>
Subject [users@httpd] apache mod_unique configuration issue - Name or service not known
Date Tue, 17 Aug 2010 09:08:51 GMT
hello,
i have the following setup:

loadbalancer - 192.168.1.10

server-2 - 192.168.1.12

it is a gentoo machine.

# apache2 -v
Server version: Apache/2.2.15 (Unix)
Server built:   Aug 12 2010 10:07:12

server2 has the following configuration

# cat /etc/conf.d/net

http://pastie.org/1097227

when i enable mod_unique in

# vim /etc/apache2/httpd.conf
...
LoadModule unique_id_module modules/mod_unique_id.so

i get these errors in :

# tail -f /var/log/apache2/error_log

[Tue Aug 17 09:41:47 2010] [alert] (EAI 2)Name or service not known:
mod_unique_id: unable to find IPv4 address of "server-2.local.net"
Configuration Failed
[Tue Aug 17 09:47:10 2010] [alert] (EAI 2)Name or service not known:
mod_unique_id: unable to find IPv4 address of "server-2.local.net"
Configuration Failed

# hostname
server-2.local
#

# cat /etc/hosts
127.0.0.1       localhost server-2.local
192.168.1.12    server-2.local

# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.0.1               localhost server-2.local


the problem seems to be with the hostname somewhere but i can't really
see what i have done wrong. the reason is that even if i disable the
mod_unique on the httpd.conf module, i get these warning when i visit:

http://192.168.1.12 - this is the actual server IP address

[Tue Aug 17 11:03:09 2010] [error] [client 203.XXX.XXX.XXX] client
sent HTTP/1.1 request without hostname (see RFC2616 section 14.23):
/w00tw00t.at.ISC.SANS.test0:)

but i don't get this errors when i access the site via the balancer
nor the alias IP's.


 any help much appreciated.

norman
-- 
˙uʍop ǝpısdn p,uɹnʇ pןɹoʍ ǝɥʇ ǝǝs noʎ 'ʇuǝɯɐן sǝɯıʇ ǝɥʇ puɐ 'ʇuǝʇuoɔ
ǝq s,ʇǝן ʇǝʎ
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )

---------------------------------------------------------------------
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


Mime
View raw message