Minimal Apache2 VirtualHost config

Here’s my  VirtualHost config for a Symfony application using Apache 2.4.

Then, the symfony application will be available at

Of course, the server name ‚’ is unique for every single virtual host (and site).

Oh yes, and Ubuntu requires you to specifically ‚enable’ the new site by typing:


Otherwise, it will not be active, unless of course you’ve created a symlink from /sites-available to /sites-enabled 🙂

You must be logged in to post a comment.