Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 11th May 2006, 19:45
KenKnight KenKnight is offline
Senior Member
Join Date: Nov 2005
Posts: 137
Thanks: 0
Thanked 3 Times in 2 Posts
Talking sharedIP access to sites before they're live

Hi all,

While recently moving all my domains in house, I needed to test the content of a site before I actually moved the domain to my server.

Since I was unable to find any information about accessing a site with something like http://www.domain.tld/~my_site_name I decided to take a different route.

While some of the more technically oriented people are familiar with this, the average user or newb isn't, so here it is.

If you're on a Win2k/XP box, edit the hosts file generally located in c:\windows\system32\etc\drivers\ and add your local server's ip along with the domain name:

192.168.x.x       www.my_server_name.com my_server_name.com
Then open a command prompt and type in
ipconfig /flushdns
Close and reopen any browsers that you have an you'll be able to hit the domain in question directly.

If you're installing scripts on the server that make calls to the domain name, you'll need to edit /etc/hosts and also add the above ip / name info.

Just remember that once you're live, you need to remove these settings.


Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig on a RaQ2 mattm Installation/Configuration 12 23rd January 2008 19:17
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! micko_escalade Installation/Configuration 35 30th March 2007 12:31
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 19:26
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 18:02
different port for admin access & suspendind nonpaying sites timehost Feature Requests 2 27th December 2005 15:25

All times are GMT +2. The time now is 01:16.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.