Search This Blog

Blogger news

How to change the localhost name in ubuntu Linux?

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.

0 comments:

Post a Comment