I understand that sub-domains aren’t supported in Virtualmin, but as a person wanting to run a hosting service I want to be able to provide new customers with a free sub-domain (i.e. websitename.example.com) if they don’t already have a registered .com or other domain.
So, for example:
My hosting service’s domain name is www.example.com.
Let’s say a new customer signs up and their website’s name is “newcustomer”.
I would want to provide them with the sub-domain, newcustomer.example.com. So when anyone visits this sub-domain (newcustomer.example.com) it will bring them to their website under the virtual server I have created for them.
So, how exactly would I go about doing this? If it’s even possible, and if it isn’t possible what is an alternate solution to this slightly large problem?
Okay, what you’re seeing isn’t a sub-domain issue… but what it is, I’m not sure ATM
What do you see if you look at the access and error logs for that domain, in $HOME/logs/ – do you see your attempt to access it in the access_log file?
If so, are any errors showing up in the error_log?
if you see a blank page after you have installed a php script, then you may want to check if php is properly installed. just a wild guess but it does occur
That didn’t seem to make any difference. I think it may be something wrong with BIND. Whenever I press “Apply Zone” under the zone for the Virtual Server in question, I get the following error: “NDC command failed : rndc: connect failed: 127.0.0.1#953: connection refused”. What does this mean?
EDIT: Nevermind, I solved the RNDC problem. It didn’t solve my sub-domain/virtual server issue though.
per haps run your domain through www.intodns.com ans see if everything is okay from DNS and A records.
if your domain does resolve to your server then per haps there is a apache (path) issue for that domain.
I ran it through and everything is okay. The only things that came up where lame nameservers on my domain registrars end which I have no control over and the fact that I have no MX records (which I don’t).
EDIT: It works when I use my .com domain registered with GoDaddy, but for some reason doesn’t work with my .tk domain registered with Dot.TK. Weird. Could this be an issue with my DNS configuration on the registrar’s side?