Invalid command 'VirtualDocumentRoot'

Posted by andy on Server Fault See other posts from Server Fault or by andy
Published on 2012-10-26T09:36:22Z Indexed on 2012/10/26 11:03 UTC
Read the original article Hit count: 235

Filed under:

I'm unsure as to why I'm getting the following error when apache is rebooted:

Invalid command 'VirtualDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration Action 'start' failed.

The snippet it is referring to is this:

<VirtualHost *:80>
        ServerAdmin [email protected]
        VirtualDocumentRoot /local/www/staging/%1

        ServerAlias *.staging.mydomain.com
</VirtualHost>

I assumed it was a misspelling as it said, but it was copied directly from another server of mine. It works perfect there. Any ideas?

© Server Fault or respective owner

Related posts about apache2