Question

Create DNS and Virtual Host Dinamycally

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.