完成向OS X (Lion)添加另一个网站需要哪些步骤?
我想将 2 个网站组织在“站点”下的 2 个文件夹中,但不知道如何到达那里。如下图所示,MB 当前的“默认”(第一个)网站分布在站点中。我担心将此默认站点放入站点文件夹中,将其称为“siteA”会导致它消失。
这些网站不在此 MB 上。(好吧,他们是,...)它被用于 BBEdit 中的开发、查看和测试。
执行以下步骤后,URLhttp://bella
回复 Forbidden - You don't have permission to access / on this server。(??)
欢迎提出建议。提前致谢。
到目前为止,我已经添加或修改了:
-- private/etc/hosts (added the following)
127.0.0.1 bella
-- private/etc/apache2/http.conf (uncommented 2nd line)
# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf
-- /private/etc/apache2/extra/httpd-vhosts.conf (added 2 VirtualHost blocks)
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/dolan2go/Sites/Bella"
ServerName bella
</VirtualHost>
我的 Macbook 目前的目录结构如下: