Operating System - HP-UX
1831343 Members
3317 Online
110024 Solutions
New Discussion

Change IP address on system but Apache shows old addres

 
SOLVED
Go to solution
Belinda Dermody
Super Advisor

Change IP address on system but Apache shows old addres

We installed apache on a test system and after we changed the IP address the apache debug log shows the old address, but it seems to be working, any suggestions.

[Thu Jul 06 16:42:22 2006] [info] mod_unique_id: using ip addr 199.999.99.11
[Thu Jul 06 16:42:23 2006] [notice] Digest: generating secret for digest authentication ..
.
[Thu Jul 06 16:42:23 2006] [notice] Digest: done
[Thu Jul 06 16:42:23 2006] [info] mod_unique_id: using ip addr 199.99.99.11

I have modified the IP address above except for last two(2) numbers should be 10
5 REPLIES 5
Peter Godron
Honored Contributor

Re: Change IP address on system but Apache shows old addres

James,
have you restarted apache (apachectl) and changed the config file to the new ipaddress?
Belinda Dermody
Super Advisor

Re: Change IP address on system but Apache shows old addres

Yup,,,, We confirmed that the httpd.conf file has the new IP address and restarted Apache. The process is running, but we are wondering why the old IP address is showing up under the mod_unique_id...
Steven E. Protter
Exalted Contributor
Solution

Re: Change IP address on system but Apache shows old addres

Shalom,

Its an old apache network connection.

You need to stop apache for a few minutes or have the systems network connection down long enough for the persistane of TCP/IP which defaults to 60 seconds to shut down the old session.

Apache might cease to work altogether if it listens on a particular ip address. The default is 0.0.0.0 which means all ip's but for security reasons I often set this parameter for ssh_config and apache.

If there are problems after following my initial recommendations check the config file of the offending app.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Denver Osborn
Honored Contributor

Re: Change IP address on system but Apache shows old addres

Was apache restarted after the ip change?

If so, then try looking for the old .11 address in an apache conf file. Also, was the change made to dns and /etc/hosts?

-denver
Belinda Dermody
Super Advisor

Re: Change IP address on system but Apache shows old addres

Thanks everyone and especially you Steven you came through again, they rebooted the server and everything is showing correctly now...