|
Posted by Gordon Burditt on 11/23/05 19:01
>My knowledge of apache is nothing impressive,. I purely use it to run
>local websites. I was wondering however, if it is possible to create
>more local domains like localhost. I like my local websites to be able
>to run in a simulated environment as my remote host. This would maybe
>run like http://localhost, http://localhost2, http://localhost3 ...
>
>Can it be done? Btw, Im running apache on Windows.
If you have access to DNS (e.g. you run a nameserver on your machine
or your LAN), you can point additional names (preferably ones not
in use by someone else, say, using the top-level domain ".local",
which will likely never be used on the global Internet), at 127.0.0.1
or the IP address of your server machine, then configure them as
virtual hosts in Apache. This will be seen only by hosts that use
your nameserver.
If you don't have access to DNS, you can do the same thing with the
HOSTS file on all the machines you want to have see the sites, then
configure virtual hosts on Apache.
Gordon L. Burditt
Navigation:
[Reply to this message]
|