On Thu, 2002-05-09 at 06:29, David Rankin wrote: > Just a quick Q, because I'm suffering from a mental lapse. > > I'm getting Apache configured on 8.2. The "SERVER_NAME" variable in > the default Welcome screen is pulling 127.0.0.1 instead of the actual > host name. Hostname is working fine. Where do I look to get this fixed.
You definitely need to edit httpd.conf, which may be located in /usr/local/apache/conf depending on how your system is set up. (My apache is on a FreeBSD box, which puts it in /usr/local/etc/apache.) Look for this: # ServerName allows you to set a host name which is sent back to clients for # your server if it's different than the one the program would get (i.e., use # "www" instead of the host's real name). # # Note: You cannot just invent host names and hope they work. The name you # define here must be a valid DNS name for your host. If you don't understand # this, ask your network administrator. # If your host doesn't have a registered DNS name, enter its IP address here. # You will have to access it by its address (e.g., http://123.45.67.89/) # anyway, and this will make redirections work in a sensible way. # # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your # machine always knows itself by this address. If you use Apache strictly for # local testing and development, you may use 127.0.0.1 as the server name. # ServerName your.server.name Gary Dunn Open Slate Project
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
