You are here: Re: Settings up additional 'http://localhosts' (ie. localhost2, localhost3) in apache « PHP Programming Language « IT news, forums, messages
Re: Settings up additional 'http://localhosts' (ie. localhost2, localhost3) in apache

Posted by juglesh on 11/23/05 21:37

Chung Leong wrote:
> Edit your HOSTS file. You will find it in
> C:\Windows\System32\Drivers\Etc\.

your HOSTS probly says
127.0.0.1 localhost

below it, add
127.0.0.2 site2

goto your httpd.conf (in apache's dir, or somewhere nearby)
look for this (around line 150) : Listen 127.0.0.1:80 or something like
it. under it, add
Listen 127.0.0.2:80

near the bottom of httpd.conf, look for the virtualHost stuff. add this
under whatever is there:
<VirtualHost 127.0.0.2:80>
ServerName site2
DocumentRoot "C:/My Documents/_websites/folderforSite2/www/"
</VirtualHost>

Thats what I do, I have a test host for 23 sites that way, just adding
1 to the IP each time. If there are less steps i could take, I'd like
to know!

--
j

 

Navigation:

[Reply to this 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

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