需要在http.conf中加入:
<VirtualHost *:8085>
DocumentRoot "f:/PHPWorkspace/FatDiary/public"
ServerName .local
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "f:/PHPWorkspace/FatDiary/public">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
还需要加入Listen 8085。
这样,就成功添加了一个VirtualHost。
本文介绍如何在Apache的http.conf文件中配置VirtualHost,通过设置监听端口8085及指定文档根目录来实现特定项目的访问。此外还涉及了开发环境下的环境变量设定及目录权限配置。
825

被折叠的 条评论
为什么被折叠?



