View Single Post
Old 01-17-2008, 11:32 PM   #23 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

well just open multiple instances of apache each listening on a different port, it will work if you create its own seperate dir with its own config etc not sure if there is any other way (in other words have multiple apache webservers running), i still think that using one apache and using a virtual host is better i.e.:

Code:
Listen 80
NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
   ServerName localhost
   DocumentRoot /var/www
</VirtualHost>

<VirtualHost 127.0.0.1>
   ServerName newsite.com
   DocumentRoot /var/www/newsite
</VirtualHost>
create the 'newsite' dir in the root
then in your hosts file:
Code:
127.0.0.1       newsite.com
note those virtual hosts path to document root will need to be changed accordingly.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote