I know enough perl to create directories and files, but how does one create a subdomain?
Here's an example;
1. user enters request for subdomain in an html form.
2. cgi script reads form field and checks for availability of the subdomain.
3. if available, the script creates the subdomain.
Does anyone know how to do that? Hopefully it's so easy, I feel dumb for asking.
Thanks
Eric
If it's possible, you could do it from the perl side by scanning .htaccess for the rewrite rules already present, and if none of them match the subdomain then append a new rule to the end...
I'm a bit patchy on mod_rewrite though - can anyone confirm this?