Hi I need to set my apache to auto create subdomains.
My idea is that at site folder /www/ I will set a script to create folders
as
/www/folder1/ , /www/folder2/ , /www/folder3/
and I want for each folder to be autocreated subdomain as :
folder1.mydomain.com , folder2.mydomain.com , folder3.mydomain.com
Perhaps the script must restart the apache at creation.. I don’t know.
I hope somebody know how to do that 🙂
You can use dynamically configured mass virtual hosting provided by the mod_vhost_alias module.
The subdomain themselves are not task for Apache. Just create a wildcard entry in your DNS server.