How To Change The Localhost Name In ubuntu Linux

Assalam O Alaikum Dear FOCSofts Friends,..  This post is especially for ubuntu users.

Requirements:
apache server should be installed.

  • Open the Terminal
  • type this command and press enter
sudo gedit /etc/hosts
hosts will be opened in notepad.
you can find this line :
127.0.0.1    localhost.localdomain    localhost

Just change the localhost to www.facebook.com
Restart the apache server.
Don't you know how to restart the server. nothing to worry just enter the following command in terminal:
sudo /etc/init.d/apache2 restart

if you enter "www.facebook.com",then you will get this page in your browser.
Copyrights:
Don't try to copy the contents! if you want to post in your website or blog.  Give me link as resource to this page.  Link should be hyperlink not a text.

If You Want Any Kind Help, Reply Here

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Top