Results 1 to 2 of 2

Thread: HOSTS File

  1. #1
    Newbie
    Join Date
    Aug 2005
    Posts
    1
    Hello All

    I have had some good experience with the HOSTS file in the past, I can direct www.anything.com to 127.0.0.1 and test my IIS system.

    I am trying to develop a site not on my PC, so I was thinking:

    Can I direct www.anything.com to my free site, lets say www.freewebs.com/anything ,,, using the HOSTS file ? It would help me do some tests.
    If I cant do that, Can I find the IP address of www.freewebs.com and then put it in ? bear in mind www.freewebs.com might not be on a dedicated server.

  2. #2
    I don't think it would work.

    It looks like you want to put a HOSTS entry for www.anything.com that matches the IP address for www.freewebs.com so that the webserver on www.freewebs.com gives you the content of preloaded www.anything.com files.

    This would require you to configure the www.freewebs.com web server software to have a virtual host entry that matches www.anything.com and points to the contents located in www.freewebs.com/anything.

    Can your hosting provider do this for you? If not, you could be in for some trouble. You could add the domain to your account. Maybe that would do the configuration automatically, but then you may have to spend a few more $$$ to your hosting service.

Similar Threads

  1. help for etc/hosts
    By bongkietwins in forum Redhat / Fedora
    Replies: 3
    Last Post: 10-07-2007, 04:05 AM
  2. updatation of hosts file in windows xp
    By mikdadhussain in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 06-01-2007, 07:53 AM
  3. squid doesn't read local hosts file, why?
    By soulhealer in forum Linux - General Topics
    Replies: 3
    Last Post: 03-30-2006, 06:57 AM
  4. How to allow only specific hosts to log on via SSH
    By Compunuts in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 08-25-2003, 07:35 AM
  5. hosts file
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 7
    Last Post: 05-16-2002, 06:15 PM

Bookmarks

Posting Permissions

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