0

I try to setup kohana 3 project as virtual host.

Config:

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

Error (403):

[client 127.0.0.1] client denied by server configuration: 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]

Could somebody help?

Codium
  • 123
  • 1
  • 10
  • Do you have a .htaccess in that location? Does the .htaccess (if present) or your Apache configuration conatain something like `Order deny,allow Deny from all` or `Deny from 127.0.0.1`? – Lukas Dec 07 '11 at 12:25
  • yes it has, it standard kohana htaccess – Codium Dec 07 '11 at 13:32

1 Answers1

0

Try setting up a Directory container like this within your VirtualHost brackets

<Directory "D:/Devel/matysart/matysart_dev1">
   Options Indexes FollowSymLinks MultiViews 
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>
Chris
  • 1,155
  • 2
  • 9
  • 18