Find the answer to your Linux question:
Results 1 to 2 of 2
i was already configured the webserver using Apache. On the WebBrowser, at the Address exactly with : http://localhost the webpage was showed up. But i was reading a book, the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie jagernout's Avatar
    Join Date
    May 2006
    Location
    Indonesia
    Posts
    102

    Virtual WebServer...


    i was already configured the webserver using Apache. On the WebBrowser, at the Address exactly with : http://localhost the webpage was showed up. But i was reading a book, the writer were wrote : http://www.example.com and the webpage was showed up. The question is : Can i do that too on a single PC??because the writer didnt mention how many Pc do we need...Thank u guys...

    Any question about the Administration problem on Linux just mail me...okey..

  2. #2
    Just Joined!
    Join Date
    Jul 2006
    Location
    Czech Republic
    Posts
    36
    Quote Originally Posted by jagernout
    i was already configured the webserver using Apache. On the WebBrowser, at the Address exactly with : http://localhost the webpage was showed up. But i was reading a book, the writer were wrote : http://www.example.com and the webpage was showed up. The question is : Can i do that too on a single PC??because the writer didnt mention how many Pc do we need...Thank u guys...
    It's just a question of fashion. You can alias your machine to any fake hostname in /etc/hosts. This way, you can even make your local site appear to be www.google.com
    See man 5 hosts for how to edit the hosts file. If you want other machines to be able to see your site on your desired address, you need to edit their hosts file too, obviously. I think there is even a hosts file in Windows.

Posting Permissions

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