如何设置多个apache虚拟主机?

时间:2014-06-11 06:17:01

标签: php apache zend-framework

我已经安装了Zend框架。但是,当我尝试设置虚拟主机 - apache时。 localhost不起作用。在wamp文件夹的外面执行zend folder.its。

我做了什么:

    <IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Include "c:/wamp/alias/*"
NameVirtualHost localhost

<VirtualHost *:80>
   DocumentRoot "C:/websites/zendy/public"
   ServerName zendy

   # This should be omitted in the production environment
   SetEnv APPLICATION_ENV development

   <Directory "C:/websites/zendy/public">
       Options Indexes MultiViews FollowSymLinks
       AllowOverride All
       Order allow,deny
       Allow from all
   </Directory>

</VirtualHost>

<VirtualHost *:80>
   DocumentRoot "C:/wamp/www"
   ServerName localhost

   # This should be omitted in the production environment
   SetEnv APPLICATION_ENV development

   <Directory "C:/wamp/www">
       Options Indexes MultiViews FollowSymLinks
       AllowOverride All
       Order allow,deny
       Allow from all
   </Directory>

</VirtualHost>

如何使用这两个虚拟主机?

0 个答案:

没有答案