Hy,
I have 3 apps that I have to make them work without interfering with each other.I'm working on an application where the clients (after registration) can have a subdomain.For this I'm using dns wildcards
The flow is:
- I have the company website on xxx.de (wp presentation website) - First virtual host
...... ServerName xxx.de .....
- The user registers himself on the main company website. After registration a new DB entry is created on the second app (zend app - the one with the subdomains) .. basically creating the user's profile and saving in DB hist profile subdomain: client1.xxx.de , client2.xxx.de etc ...
.... ServerName *.xxx.de ....
On any request .. in the code I'm checking if there is an existing DB entry for the requested URL subdomain .. if yes then I'm displaying his profile subdomain ... if not then I;m redirecting to the main xxx.de website.
On the same server I also have a testing version of another app using the same domain name testingapp2.xxx.de
.... ServerName testingapp2.xxx.de ....
:) you've guessed it ... because of the second app now the third is not working , because on the second app I'm allways checking in DB if there is a client matching the requested subdomain and redirected to the main company website.
What would be the solution for making all 3 or more apps work together ?
Thanks