Find the answer to your Linux question:
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.
  1. #1
    Just 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

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284

    Re: name change

    Quote Originally Posted by shadowfox
    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")

    Jason

  3. #3
    Just Joined!
    Join Date
    Nov 2003
    Posts
    9
    is this the one
    Code:
    #
    # VirtualHost example&#58;
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for requests without a known
    # server name.
    #
    do i delete the # server name
    or the line after

  4. $spacer_open
    $spacer_close
  5. #4
    Linux 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.

  6. #5
    Just 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&#58;80

  7. #6
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    yes thats the one,
    remove the # and replace the name with whatever name you want.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •