Web无法访问apache虚拟主机的根目录

Web无法访问apache虚拟主机的根目录,apache,laravel-4,Apache,Laravel 4,我正在运行apache。我有一个名为mis.chaatz.com的虚拟主机。但是如果我输入mis.abc.com。它返回“禁止您没有访问/访问此服务器的权限”。但是,如果我键入mis.abc.com/login,它可以重新运行网页。我想我的apache配置有问题。整天都在尝试,没有运气 配置如下: <Directory /> AllowOverride All Require all granted Allow from all </Directory> D

我正在运行apache。我有一个名为mis.chaatz.com的虚拟主机。但是如果我输入mis.abc.com。它返回“禁止您没有访问/访问此服务器的权限”。但是,如果我键入mis.abc.com/login,它可以重新运行网页。我想我的apache配置有问题。整天都在尝试,没有运气

配置如下:

<Directory />
  AllowOverride All
  Require all granted
  Allow from all
</Directory>

DocumentRoot "c:/Apache24/htdocs"

<Directory "c:/Apache24/htdocs">
  Options FollowSymLinks
  AllowOverride All
  Require all granted
</Directory>  

<IfModule dir_module>
  DirectoryIndex index.html
</IfModule> 

# the following the document root of the mis.chaatz.com 

<Directory "C:\apache24\htdocs\new_project\laravel\public\laravel1\public">
    AllowOverride all
    Require all granted
Allow from all
</Directory>
 <VirtualHost *:80>
  DocumentRoot "C:\apache24\htdocs\new_project\laravel\public\laravel1\public"
  ServerName mis.abc.com    
 </VirtualHost>   
我在/windows/system32/drivers/etc中有一个主机文件

127.0.0.1 mis.abc.com
httpd.conf如下所示:

<Directory />
  AllowOverride All
  Require all granted
  Allow from all
</Directory>

DocumentRoot "c:/Apache24/htdocs"

<Directory "c:/Apache24/htdocs">
  Options FollowSymLinks
  AllowOverride All
  Require all granted
</Directory>  

<IfModule dir_module>
  DirectoryIndex index.html
</IfModule> 

# the following the document root of the mis.chaatz.com 

<Directory "C:\apache24\htdocs\new_project\laravel\public\laravel1\public">
    AllowOverride all
    Require all granted
Allow from all
</Directory>
 <VirtualHost *:80>
  DocumentRoot "C:\apache24\htdocs\new_project\laravel\public\laravel1\public"
  ServerName mis.abc.com    
 </VirtualHost>   

允许超越所有
要求所有授权
通融
DocumentRoot“c:/Apache24/htdocs”
选项如下符号链接
允许超越所有
要求所有授权
DirectoryIndex.html
#下面是mis.chaatz.com的文档根目录
允许超越所有
要求所有授权
通融
httpd vhosts形态如下所示:

<Directory />
  AllowOverride All
  Require all granted
  Allow from all
</Directory>

DocumentRoot "c:/Apache24/htdocs"

<Directory "c:/Apache24/htdocs">
  Options FollowSymLinks
  AllowOverride All
  Require all granted
</Directory>  

<IfModule dir_module>
  DirectoryIndex index.html
</IfModule> 

# the following the document root of the mis.chaatz.com 

<Directory "C:\apache24\htdocs\new_project\laravel\public\laravel1\public">
    AllowOverride all
    Require all granted
Allow from all
</Directory>
 <VirtualHost *:80>
  DocumentRoot "C:\apache24\htdocs\new_project\laravel\public\laravel1\public"
  ServerName mis.abc.com    
 </VirtualHost>   

DocumentRoot“C:\apache24\htdocs\new\u project\laravel\public\laravel1\public”
ServerName mis.abc.com

我使用以下在Mac OSX上一直适用的方法。我根本没有配置
httpd.conf
。我隐约记得Apache读取路径中的前斜杠,而您有反斜杠。我想说,在不使用您所做的
httpd.conf
编辑的情况下尝试一下

<VirtualHost *:80>
   DocumentRoot C:/apache24/htdocs/new_project/laravel/public/laravel1/public
   ServerName mis.abc.com   
</VirtualHost>

DocumentRoot C:/apache24/htdocs/new_project/laravel/public/laravel1/public
ServerName mis.abc.com

Hi,在逐步跟踪之后。我终于发现这个配置中存在问题。如果我将上面的index.html更改为index.php,则DirectoryIndex.html。然后问题就解决了。