.htaccess throws 403 Creating a Forbidden / Zend Framework Quick Launch Project (Mac OS X 10.6.5)

I am trying to start the Zend Framework for a quick start, but I have encountered a .htaccess problem. It seems that if I delete the .htaccess file, the project works fine, but if I leave it there, it will throw 403 Forbidden. The .htaccess file is the default file created by the Zend Framework console command. Here is the .htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

This is on Mac OS X 10.6.5

mod_rewrite enabled AllowOveride All

Here is my virtual host info

<VirtualHost *:80>
     ServerName zf_cms.local
     DocumentRoot /Users/kjye/Sites/zf_cms/public
     SetEnv APPLICATION_ENV "development"
     <Directory /Users/kjye/Sites/zf_cms/public>
          Options +Indexes +FollowSymLinks +ExecCGI
          DirectoryIndex index.php
          AllowOverride All
          Order allow,deny
          Allow from all
     </Directory>
</VirtualHost>

I fixed it by adding "Options + Indexes + FollowSymLinks + ExecCGI". Thank you for watching.

+5
source share
2 answers
<VirtualHost *:80>
 ServerName zf_cms.local
 DocumentRoot /Users/kjye/Sites/zf_cms/public
 SetEnv APPLICATION_ENV "development"
 <Directory /Users/kjye/Sites/zf_cms/public>
      Options +Indexes +FollowSymLinks +ExecCGI
      DirectoryIndex index.php
      AllowOverride All
      Order allow,deny
      Allow from all
 </Directory>

, , Mac OS. .

+7

Options +Indexes +FollowSymLinks +ExecCGI

- , , ?

+2

All Articles