View Single Post
  #9  
Old 7th May 2008, 16:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by mike_phi
The question, what should I use for a url to resilve my newly created site which is not a registered domain name.

how I got it working is by entering my internal IP address and my newly created doamin in the /etc/hosts file

and the academics behind why ths works is due to the virtual host i.e. apache matces the incomming ip then mathes that against the servername and it works fine.

but this ant be seen as a solution as one would have to manually edit the /etc/hosts file for every site.

I think the root of the problem is to ensure that the http_hots header has the host name whic is only posible from a DNS which implies a registered domain.
If you don't want to register a domain, you can either modify the hosts file on your client PC for every domain, or you set up an internal DNS server that your client PC uses to look up domains.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote