php - Safe & Secure Way to Add Domain to Server -
I am trying to find the best way to connect a new domain on the server using PHP. I know that this is possible because applications like Bit Pro Pro are allowed to connect to their domains and begin managing them for small domains (hence they can redirect).
Here's how this will work, but I want to make sure it's safe, and also want to learn the safest way to execute this process:
- The user joins the domain, the domain is valid with the regex
- The user verifies the domain (is it really necessary? They can edit DNS's domain if it Is of their domain)
- server The API calls the DNS Manager to add the domain (I'm using Linode, so this is an API call
- The application writes on the new virtual host httpd.conf
- App Resume Apache
Then, this process may be completely shut down, so please tell me what you think and how you will code it
lot Thank you very much! :)
-
and 5. Not sure. Just redirect all domains to a script (php / cgi / etc) that handles and redirects the domain.
-
Yes, this is not a nipper but you can check whether they have already inserted your DNS.
-
Comments
Post a Comment