Create DNS and Virtual Host Dinamycally

August 24, 2015 2k views
DNS LAMP Stack Linux Basics PHP Frameworks Linux Commands Configuration Management

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

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.

Have another answer? Share your knowledge.