Viewing a site before DNS propagates

Discussion in 'Installation/Configuration' started by andrewt, Jul 21, 2006.

  1. andrewt

    andrewt New Member

    Hi all,

    I looked over the httpd.conf and vhosts files that ISPConfig outputs but wasn't able to answer this question for myself (and couldn't find it among the archives).

    I've just set up a site for someone (say, using ISPConfig, and the base directory for that website will be /var/www/web3/web/. It'll be a day or so until DNS changes fully propagate so that actually resolves to this ISPConfig-based server.

    In the meantime, is there a IP address-based URL via which the user can view his site as he works on it? E.g., something in the spirt of ~user that works for individual users' homepages, like If nothing works out of the box, I know I can just copy and tweak the VirtualHost in /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf. Or I can have the user modify his PC's \windows\system32\drivers\etc\hosts file.

    But I'm wondering if there's a better solution (that won't get blown away if I then make changes to the server via ISPConfig).


  2. Ben

    Ben ISPConfig Developer ISPConfig Developer

    Why don't you just tell them your ip, the dns name and how to add it into their hosts file?
  3. falko

    falko Super Moderator ISPConfig Developer

    Yes, do it that way.
  4. crapufish

    crapufish New Member

    There is any way to do what andrewt originally requested?


  5. falko

    falko Super Moderator ISPConfig Developer

    Apart from modifying the clients' hosts file - no.
  6. crapufish

    crapufish New Member

    And how ca I do that?
  7. Leszek

    Leszek New Member


    You could make a .bat file for example dns.bat and write a line like this into it:

    echo >> C:\Windows\system32\drivers\etc\hosts
    and then send it to Your clients.The path above is for Windows XP.
    Unfortunetly it differs in other Windows systems.
  8. crapufish

    crapufish New Member

    Yea, but what about you want to call a certain URL on the server itself?
    I mean, let's suppose you have a cron job which calls an URL on a virtual host hosted on the server. The virtual host should be accesible with it's name (like This doesn't work on my system so I guess I should use something like http://localhost/~virtualhost/.

  9. falko

    falko Super Moderator ISPConfig Developer

    Then you must modify /etc/hosts.

Share This Page