Zend Http conf设置为Windows 7

时间:2012-10-19 06:19:14

标签: apache zend-framework virtualhost

我正在关注Zend初学者教程。实际上需要在Linux PC中的本地服务器Apache httpd.conf中进行设置。

    NameVirtualHost *:80
    <VirtualHost *:80>
    DocumentRoot "/usr/local/apache/htdocs/square/public"
    ServerName square.localhost
    </VirtualHost>

但我在我的本地安装了Xampp的Windows 7。有谁可以帮我解决这个问题,如何把它放在我的本地httpd.conf文件中。

1 个答案:

答案 0 :(得分:0)

DocumentRoot "/usr/local/apache/htdocs/square/public"更改为项目的公用文件夹。例如,"C:\XAMPP\www\square\public"或项目的公共文件夹所在的位置。

另外,请确保您的主机文件中包含以下行:127.0.0.1 localhost

相关问题