How to set up virtual hosts properly on a windows machine using Zend Community CE ?
- by Scott F
I have set up Zend Server CE on a windows machine and am having the hardest time setting up virtual hosts. No matter what I do, links on my local machine are showing "localhost" in the path causing all images and links to not work properly.
I have the following in my vhosts file and while the site loads up, most links show "local host in them". Please help.
NameVirtualHost *:80
DocumentRoot D:\zend_server_ce\Apache2\htdocs\domain.dev
ServerName www.domain.dev
ServerAlias www.domain.dev *.domain.dev domain.dev
UseCanonicalName Off
#CustomLog D:\zend_server_ce\Apache2\htdocs\domain.dev\logs\access.log
# ErrorLog D:\zend_server_ce\Apache2\htdocs\domain.dev\logs\error.log
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all