1

I've added a virtual host in my vhosts file like this

<VirtualHost *:80>

ServerAdmin webmaster@dummy-host2.example.com

DocumentRoot "/Users/myname/Sites/test/public"

ServerName test

<Directory "/Users/myname/Sites/test/public">

    AllowOverride All

</Directory>

</VirtualHost>

My zend project is in the path "/Users/myname/Sites/test", called it test

Also, in the hosts file, I've this

127.0.0.1 test

These are the exact same steps I did on Windows, where it works correctly. But on Mac, it doesn't. I get

"Forbidden You don't have permission to access /test/public/ on this server" error.

What else am I missing?

My rewrite module is on

user187809
  • 151
  • 1
  • 1
  • 8

3 Answers3

1

Finally, after wasting a couple of hours, found the solution I had to add Options +FollowSymLinks within the Directory :(

Thanks everyone, who answered

user187809
  • 151
  • 1
  • 1
  • 8
  • Good to know. :-) Interestingly, I had this commented out in my file, hence why it did not appear in my answer. Apparently I had to comment it out to make it work for me. Glad you made it work. –  Jul 29 '12 at 17:14
0

Do you have mod_access enabled? You may need to add this inside your Directory stanza:

Order allow,deny
Allow from all
Alex Howansky
  • 510
  • 2
  • 5
0

First of all, make sure that you have restarted your web server. I got that error too a few days ago after having changed the paths without restarting.

Below is part of my httpd-vhosts.conf on OS X Lion 10.7 and AMPSS.

<VirtualHost *:80>
ServerName zend.local
SetEnv APPLICATION_ENV development
DocumentRoot "/Users/Andy/dev/quickstart/public"
<Directory "/Users/Andy/dev/quickstart/public">
    DirectoryIndex index.php
    AllowOverride All
    Order deny,allow
    allow from All
</Directory>
</VirtualHost>

Hope it helps.

ba0708
  • 103
  • 4