Page 1 of 1

MySQL Dynamic Virtual Hosts

PostPosted: 10. November 2007 13:40
by steve lowe
Hi,

Does any one know if XAMMP can be enabled so that the virtual hosts can work from a MySQL database.

This would be really great for sites with large number of virtual hosts.

Any help would be greatly appreciated.

_steve

PostPosted: 11. November 2007 17:22
by Scory
What do you mean be "virtual hosts can work from a MySQL database"?

Can you explain more precisely what you are looking for?

Scory

PostPosted: 12. November 2007 14:46
by LooseCannon
Hi steve lowe. I'm not sure what the issue is either.

After installing XAMPP, it is ready and waiting for virtual hosts (vhosts) to utilise PHP and MySQL. Refer to C:\xampp\apache\conf\extra\httpd-vhosts.conf and the many other threads here about vhosts.

Maybe you want a vhost 'name' to be actually stored in the database? This would be interesting.

I believe that Apache handles the serving of vhosts and that comes before PHP code connects to the database... Hmmm.