View Single Post
  #1 (permalink)  
Old 04-26-2008, 10:37 PM
horseatingweeds horseatingweeds is offline
Junior Member
 
Join Date: Apr 2008
Posts: 16
Default separating sites on a server

I'm experimenting with Zend Framework. I have several site on my test server (Apache2, php5, MySQL5, Windows XP). Before I just put everyting in different folders. Ex. htdoc/site1, htdoc/site2

For the Zend project I made a fake domain. Here is how I did it:


Code:
<VirtualHost *:80>

	ServerName phpweb20
	DocumentRoot "C:\Apache2.0\Apache2\htdocs\phpweb20"
	
	<Directory "C:\Apache2.0\Apache2\htdocs\phpweb20">
		AllowOverride All
		Options All
	</Directory>
	
	php_value magic_quotes_gpc off
	php_value register_globals off

</VirtualHost>
hosts
Code:
127.0.0.1       localhost
127.0.0.1	phpweb20
So, how do I create separate virtual hosts or haw can I keep the other folders functioning as there were?

Currently my other site give a Zend error. Ex. http://localhost/site2 is now looking for Site2Controller.
Reply With Quote