I am offering to my costumers a web based app hosted on dedicated servers, so clients can register on the website and use the service by using the URL : mywebsite.com/client.
The service is running and I have no problem with it !
Actually, I would like to add a new option to the app and let costumers use their own domain, BUT have the app still hosted on my servers !
Now I would like to know how I can add new domains to my server (I know they should be pointed to my name servers) automatically and by using PHP scripts ?
So clients add the domain, they get NS URL's and IP's and after they changed the domain name servers, they can use the service using their domain name
I'm pretty sure I need to edit Apache config file for that, but I have no idea, what modification should be done !
In general, I would like all clients domains will be added as an addon domain to my domain where the app is hosted ! So I can get the domain name as user identifier !
*I use Centos and also centos web panel