Now a days I am learning symfony framework.
While installation I came across the need to configure the virtual host on my ubuntu.
Here is what I found on the Ubuntu online documentation.
In Apache2 ships with a virtual-host-friendly default configuration. That is, it is configured with a single default virtual host (using the VirtualHost directive) which can modified or used as-is if you have a single site, or used as a template for additional virtual hosts if you have multiple sites.