Dynamic virtualhost causing "client denied by server configuration" error

Posted by ridan on Server Fault See other posts from Server Fault or by ridan
Published on 2012-09-02T14:40:27Z Indexed on 2012/09/02 15:40 UTC
Read the original article Hit count: 283

Filed under:
|
|

I'm trying to configure a dynamic virtualhost on mac:

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName *.*.*
    ServerAlias *.*.*.*

    VirtualDocumentRoot "/Volumes/Work/webs/%2"
    VirtualScriptAlias "/Volumes/Work/webs/%2"

    <Directory "/Volumes/Work/webs/%2">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        order allow,deny
        allow from all
    </Directory>
</VirtualHost>

It causes this error: "client denied by server configuration". When I replace by it works fine...

Any ideas ?

© Server Fault or respective owner

Related posts about apache2

Related posts about virtualhost