BenSeagrave
09-21-2009, 01:35 PM
How do i make a Automatic Subdomain Hosting Service Like websites that offer free hosting So say, websitename.freehost.co.uk or something.
I am not sure if it's done with PHP and through Cpanel? if someone can tell me how or link me to a tutorial.
Thanks
bladeserv
09-21-2009, 05:02 PM
I guess mod_rewrite could be involved
ramnet
09-21-2009, 11:11 PM
You could also use mod_vhost_alias
# A request for http://www.example.com/directory/file.html
# will be satisfied by the file /var/www/vhosts
# /www.example.com/directory/file.html.
UseCanonicalName Off
VirtualDocumentRoot /var/www/vhosts/%0
I think Lighttpd's mod_vhost_simple can also do this in a similar way.
---
And don't forget about the wildcard DNS record :)
*.example.com. IN A 1.2.3.4
Respite
09-21-2009, 11:38 PM
hmm what a worry hehe... Sure you can do this easily if you have cPanel if you want to go the extra mile with costing use whmcs/clientexec for fraud checking...
BenSeagrave
09-23-2009, 04:09 PM
can anyone tell me how to do it, Instaid of telling me what i need or what is used