[PLUG] Apache configuration
Richard Steffens
rsteff at attbi.com
Tue Mar 26 18:08:53 UTC 2002
Looking at the PHP info page, I discovered an incorrect situation on my
in-house apache server. HTTP_HOST and SERVER_ADDR are correctly listed
as 192.168.0.254, but SERVER_NAME is listed as 192.168.0.2. When I first
set up my network, 192.168.0.2 was the address of the machine with the
apache server as supplied by DHCP from my router. I changed it to
192.168.0.254 after reconfiguring the server to not use DHCP.
Question:
Is /etc/httpd/conf/httpd.conf the only place I need to change to fix
this? I ran:
grep "192.168." httpd.conf
and got:
ServerName 192.168.0.2
I assume changing ServerName to 192.168.0.254 and running
/etc/rc.d/init.d/httpd -stop followed by /etc/rc.d/init.d/httpd -start
will fix the problem.
Did I miss anything?
--
Regards,
Dick Steffens
"Quando Omni Flunkus Moritati"
http://rsteff.home.attbi.com/
More information about the PLUG
mailing list