how to reach my base site to test before domain resolution ?

Discussion in 'Installation/Configuration' started by edison, May 27, 2007.

  1. edison

    edison New Member

    Hello, I would like to test my sites before redirecting the domain names.
    I arrive to reach the www folder of the users with an address of the www.domain.tld/~user1 type.
    But is it possible to join the "base" site in the same way?

    I speak about the "www" which is on the same level as users folder.
    I tested /home/webxx… but…
  2. volksman

    volksman New Member

    use the hosts file on your PC to map the domain temporarily. Linux: vi /etc/hosts Windows: edit C:\windows\system32\drivers\etc (from memory..could be wrong..been a while and I don't use windows).

    syntax is very simple:

    IP Host

    so as a demo say your server is then www.domain.tld

    Save and Exit...You can set as many domains as you want this way and only YOU will see them that way....Just don't forget to remove them when you go live cause you could go nutts later trying to make changes and your hosts file is overriding them on your machine...

    again this is done from the machine you want to view the sites from...not the server itself...
  3. edison

    edison New Member

    thank you,

    I understood well, I had done that also with easyPHP and Windows for my sites (local).

    in host file (without dot nor extension).


Share This Page