xampp 1.7.3升级禁止损坏的虚拟主机访问 [英] xampp 1.7.3 upgrade broken virtual hosts access forbidden

查看:100
本文介绍了xampp 1.7.3升级禁止损坏的虚拟主机访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了与另一个用户在此处报告的问题类似的问题 XAMPP v1.7.4安装问题,本地主机不起作用

I've got a similar issue to that reported by another user here XAMPP v1.7.4 installation issues,local host not working

在我的情况下,将xampp升级到1.7.3(osx)破坏了我的虚拟主机.

Upgrading xampp to 1.7.3 (osx) in my case has broken my virtual hosts.

在我拥有的/etc/hosts中

In /etc/hosts I've got

127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost  
fe80::1%lo0     localhost

127.0.0.1 mysite.test

在/Applications/XAMPP/etc/httpd.conf中,我得到了:

In /Applications/XAMPP/etc/httpd.conf I've got:

LoadModule rewrite_module modules/mod_rewrite.so #uncommented
Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf #uncommented

在/Applications/XAMPP/etc/extra/httpd-vhosts.conf中,我得到了: #使用基于名称的虚拟主机. 名称VirtualHost *:80 名称VirtualHost *:443

In /Applications/XAMPP/etc/extra/httpd-vhosts.conf I've got: # Use name-based virtual hosting. NameVirtualHost *:80 NameVirtualHost *:443

<VirtualHost *:80>
  ServerName mysite.test
  DocumentRoot "/path-to-mysite/"
  <Directory "/path-to-mysite/">
    DirectoryIndex index.php
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>

尝试访问mysite.test时,Apache记录以下错误 [错误] [客户端127.0.0.1](13)权限被拒绝:访问/拒绝

When tryng to access mysite.test Apache is logged in the following error [error] [client 127.0.0.1] (13)Permission denied: access to / denied

我已经删除了.htaccess文件,并修复了我的磁盘权限,以防引起问题.

I've deleted the .htaccess, and repaired my disk permissions in case that was causing the problem.

谁能建议我可能会想念的东西?

Can anyone suggest what I might be missing?

谢谢.

推荐答案

请确保主.conf文件中的权限没有更改.可能是AllowOverride None或导致问题的原因.

Make sure that there isn't a changed permission in your main .conf file. Could be an AllowOverride None or something that is causing the problem.

这篇关于xampp 1.7.3升级禁止损坏的虚拟主机访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆