Results 1 to 6 of 6
hello
how do i change the name of the server from localhost to some thing else
thank you...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-17-2003 #1Just Joined!
- Join Date
- Nov 2003
- Posts
- 9
name change
hello
how do i change the name of the server from localhost to some thing else
thank you
- 12-17-2003 #2Linux Guru
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 3,284
Re: name change
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")
Originally Posted by shadowfox
Jason
- 12-17-2003 #3Just Joined!
- Join Date
- Nov 2003
- Posts
- 9
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
- 12-17-2003 #4Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
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.
- 12-17-2003 #5Just Joined!
- Join Date
- Nov 2003
- Posts
- 9
then is it this one
Code:# # 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
- 12-18-2003 #6Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
yes thats the one,
remove the # and replace the name with whatever name you want.


Reply With Quote
