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 http://localhost.app

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

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

a2ensite

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.