【发布时间】:2012-11-05 13:48:24
【问题描述】:
我是第一次在 Mac 中使用 XAMPP。运行除根文件夹(htdocs)之外的访问问题。当我将我的 Web 应用程序放在具有默认 httpd.conf 文件的 htdocs 中时,当我尝试将我的 Web 应用程序 URL 指向 httpd.conf 时它会抛出 You don't have permission to access / on this server. 错误
我知道要修改根文件夹,我需要更改我的 XAMPP/etc/httpd.conf 文件
使用默认 XAMPP MAC 设置,我正在尝试更改 XAMPP/etc/httpd.conf 文件中的服务器根目录、文档根目录和目录
ServerRoot "/Applications/XAMPP/xamppfiles"
DocumentRoot "/Users/ravi/Documents/Development/Backbone/backboneboilerplate"
<Directory />
#Options FollowSymLinks
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
<Directory "/Users/ravi/Documents/Development/Backbone/backboneboilerplate">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
【问题讨论】:
标签: apache apache2 xampp localhost document-root