我第一次在 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>