Create DNS and Virtual Host Dinamycally

Posted August 24, 2015 2.6k views
Linux BasicsLAMP StackDNSPHP FrameworksConfiguration ManagementLinux Commands

I wanna configure a structure that create automatically a DNS and a copy of a template folder with a ecommerce file and point to it.
The goal is, a client create a account on my ecommerce and automatically the serve creates a folder with the ecommerce files (copied from the template folder that contains the files) and create a virtual host configuration using a created dns that points to it folder.

I don’t know if I’m being clear, actually I’ve been looking for a way to do that or some kind of way to archive the final goal but I don’t even know how to look for that kind of feature.

so, if you could help me I would be very grateful.

Thanks in advanced

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Easiest way to do this is to use some sort of control panel. I have been using ISPConfig for a while now and I really like it. Its an active community and a good free CP.
Then you could use its API to get your website running once there’s a request.