First of all, I'm sorry for my bad English. I'll try to explain my aim as much as possible.
I'm using a 2 Core and 2 GB memory VPS with 1 dedicated IP address from Digital Ocean for my project. I'm using
nginx as a web server,
MySQL as a database server and
bind as a DNS server.
My project is a free hosting platform for educational purposes. I'll be teaching PHP and MySQL to students from my neighborhood and I want them to practice on their own subdomain with a PHP and MySQL support.
For example, my main domain name is :
example.com I'll also setup a wildcard SSL for my domain.
For example, student subdomain should be like this :
Students will be able to activate their web space with the subdomain they choose automatically using my setup script which is written in PHP (a simple page).
- How can I achieve this setup without using any control panel like
- How can any subdomain which is chosen by a student resolve my main domain?
- Can students use their own TLD domain on a setup like this?
Do you have any suggestions for this kind of setup?