虚拟主机错误:服务器配置拒绝客户端

虚拟主机错误:服务器配置拒绝客户端

我尝试将 kohana 3 项目设置为虚拟主机。

配置:

<VirtualHost *:80>
  DocumentRoot "D:/Devel/matysart/matysart_dev1"
  ServerName matysart-one.local
  ServerAlias www.matysart-one.local
  DirectoryIndex index.php
</VirtualHost>

错误 (403):

[客户端 127.0.0.1] 服务器配置拒绝客户端:D:/Devel/matysart/matysart_dev1/

.htaccess

# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
    Order Deny,Allow
    Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

有人可以帮忙吗?

答案1

Directory尝试在 VirtualHost 括号内设置这样的容器

<Directory "D:/Devel/matysart/matysart_dev1">
   Options Indexes FollowSymLinks MultiViews 
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>

相关内容