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.