Setting up Multi-Tenancy

I’m trying to set up a multi-tenant web site with a single database (for the time being). I’m using a LAMP stack with the Symfony framework. All information in the database will be stored with a tenant_id. The tenant_id will be based on the URL.

The URL will be pointed to my web server, and there will be no installation on the users part. Once the DNS is pointed to my server, they have the software set up and ready to go. They just need to log in and make their modifications.

Would I need to configure Apache in some specific way to point all domains to a specific path?