Operating Systems > Linux and UNIX
Apache Help
LorKorub:
I was thinking about doing something like that. Maybe I can just call ip-up from inside httpd.conf?
voidmain:
Actually, if you set the IP/Hostname in /etc/hosts you don't have to change it in the Apache config (use the name). Then just manipulate the /etc/hosts file. You can do this with a script. I don't know about SuSe but in RedHat I would add a line to /etc/sysconfig/network-scripts/ifup-post to put the correct IP address in the /etc/hosts file. Of course there are thousands of other ways to do this.
Navigation
[0] Message Index
[*] Previous page
Go to full version