zend server的虚拟目录配置是在配置文件zend.conf下完成的。
1、打开配置文件/Zend/Apache2/conf/zend.conf,在文件的末尾处添加:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.myebeok.com
ServerAlias myebeok.com *.myebeok.com
DocumentRoot "D:/Program Files/Zend/Apache2/htdocs/ebeok"
<Directory "D:/Program Files/Zend/Apache2/htdocs/ebeok">
AllowOverride All
Allow from all
</Directory>
</VirtualHost>
2、打开本机host文件(windows下是:C:/WINDOWS/system32/drivers/etc/hosts)
在末尾处添加:127.0.0.1 www.myebeok.com
重新启动apache。。配置完成