I have a bunch of domains pointing to my server. Does Apache handle errors on domains that are pointing to my server and not setup in cpanel / whm?
I want to run a script to automatically create an account for domains that point to the server.
I have a bunch of domains pointing to my server. Does Apache handle errors on domains that are pointing to my server and not setup in cpanel / whm?
I want to run a script to automatically create an account for domains that point to the server.
If you’re using normal virtual hosts Apache will serve the directory set in DocumentRoot. If you’re using Mass Virtual Hosting you will get a 403 forbidden or 404 not found.
As for automatically creating accounts you’d probably want to use either Mass Virtual Hosting, or write a vhost for new domains to the vhost config and reload Apache.