Virtual host doesn't seem to work as I keep seeing the Zend Server Test Page. I have one virtual host (http://sandbox.loc) and the main host (http://localhost).
Using version Zend Server CE 5.6.1 (Full Installation) & Windows 7 Ultimate (x64).
Uncommented: "Include conf/extra/httpd-vhosts.conf" in httpd.conf. Apache is listening at Port 80.
Below is a snippet of my httpd-vhosts.conf:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:\Program Files (x86)\Zend\Apache2\htdocs"
<Directory "C:\Program Files (x86)\Zend\Apache2\htdocs">
Order Allow,Deny
Allow from All
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName sandbox.loc
DocumentRoot "C:\Program Files (x86)\Zend\Apache2\htdocs\sandbox"
<Directory "C:\Program Files (x86)\Zend\Apache2\htdocs\sandbox">
Order Allow,Deny
Allow from All
AllowOverride All
</Directory>
</VirtualHost>
Now my "hosts" file:
- Code: Select all
127.0.0.1 localhost
::1 localhost
127.0.0.1 sandbox.loc
Apache was restarted after these changes.

