Reply to Re: Settings up additional 'http://localhosts' (ie. localhost2, localhost3) in apache

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация