PDA

View Full Version : Viewing a site before DNS propagates


andrewt
21st July 2006, 06:27
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, foo.com) 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 foo.com 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 1.2.3.4/~web3webdir?) 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).

Thanks!

Andrew

Ben
21st July 2006, 09:27
Why don't you just tell them your ip, the dns name and how to add it into their hosts file?

falko
22nd July 2006, 16:01
Or I can have the user modify his PC's \windows\system32\drivers\etc\hosts file.

Yes, do it that way.

crapufish
17th March 2007, 21:45
There is any way to do what andrewt originally requested?

Thanks!

Dorian

falko
18th March 2007, 20:36
Apart from modifying the clients' hosts file - no.

crapufish
22nd March 2007, 10:28
And how ca I do that?

Leszek
22nd March 2007, 12:04
Hi!

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

echo 195.136.127.12 www.client.pl >> 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.

crapufish
22nd March 2007, 12:12
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 www.virutalhost.com)? This doesn't work on my system so I guess I should use something like http://localhost/~virtualhost/.

Thanks!

falko
23rd March 2007, 18:44
Yea, but what about you want to call a certain URL on the server itself?

Then you must modify /etc/hosts.