hello
how do i change the name of the server from localhost to some thing else
thank you
Printable View
hello
how do i change the name of the server from localhost to some thing else
thank you
Edit your httpd.conf file, there is a line like "ServerName <name-here>", if that has a # in front of it, remove the #, and replace "<name-here>" with whatever you want the server to be called. Save the file, and then restart the apache server (generally "apachectrl restart")Quote:
Originally Posted by shadowfox
Jason
is this the one
do i delete the # server nameCode:#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
or the line after
No, that's not the one. There should be a line that reads exactly "ServerName" and then some name, with that capitalization and no space.
then is it this oneCode:#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
#ServerName www.example.com:80
yes thats the one,
remove the # and replace the name with whatever name you want.