User with subdomain insted of TLD

mrstarware

Verified User
Joined
Mar 5, 2007
Messages
19
I tried to make a user with a subdomain of my domain name and it didn't work?

It is possible to set up a user account with a sub isn't of a TLD right?
 
You shouldn't have any problem setting up a subdomain as a domain. For example, you create a domain as sub.example.com instead of as example.com.

However unless the main domain is hosted on the same server you need to make changes to DNS wherever the main domain is hosted, so that users will see your subdomain.

You do that by creating NS records for the subdomain in the main domain's DNS zone file, wherever that's hosted, pointing to the nameserver name(s) for the server where the subdomain is hosted.

Jeff
 
Thank you for the reply.

I'm thinking the problem has something to do with errors 10 and 100?

What are those?
 
If you set up a subdomain as if it's a real domain instead of as a subdomain, then you manage it as a real domain, and not under subdomain management.

Jeff
 
Well what I mean is that it seems like my directadmin can't seem to make subdomains very well. Is there something that could cause that?
 
I can't understand what you mean. DA subdomains, made as subdomains, are very simple; they're just a container set up for the subdomain in httpd.conf, pointing to a specific subdirectory. Subdomains created as domains are exactly the same as domains. If you do create subdomains as domains, then you have to make sure that DNS for them works.

Otherwise I don't see any possible problems.

Jeff
 
Well my domain is pointed to my server IP address so I don't see a problem there.

Is there anything else besides making the account that needs to be done?
 
Well can someone please just run me through the steps to make sure I'm not forgetting something?
 
Better if you'd go through what you've done and/or ask specific questions.

Or check instructions for creating subdomains here, or for creating domains here.
Or to create a domain as reseller, here.

Jeff
 
Very sorry for bumping this thread after all this time however I'd just like to mention I did get the subdomain as a real domain working, however I can't seem to make a sub-domain as a sub-domain without getting an error 403 whenever accessing it..


Now you said that sub-domains are "containers" in http.conf, is it possible that the directadmin isn't auto doing that and I need to fix it somehow?
 
Forbidden when you try to upload to it? If so then tell us what the ownership and rights are of the subdomain directory; from the shell:
Code:
ls -ald /home/USERNAME/domains/EXAMPLE.COM/public_html/SUBDOMAIN-NAME
Jeff
 
I don't quite understand what you mean?

I'm rather new to VPS and all these root commands.

What you gave me turned out like this.

Code:
ls -ald /home/admin/domains/starzonegaming.com/public_html/mario
drwxrwxrwx  3 admin admin 4096 May  1 04:09 /home/admin/domains/starzonegaming.com/public_html/mario

And the subdomain is mario
 
The error I'm getting at: http://www.starzonegaming.com/mario looks like you don't have an index.html file. What do you expect to show up?

Is the domain owned by admin? If so, then the ownership is correct.

When I create a subdomain I get a value of drwxr-xrwx. Either way should work, so I'd look to make sure the files are where they need to be.

Jeff
 
:o turns out I needed to name the file index.html not index with and html template.:o

One more question, how do I have a subdomain act as another person's account.

Ie.

Say I wanted to make another ACCOUNT like account2.starzonegaming.com as the user 'user2' how would I do that?

Thanks for your help so far. :)

Mrstarware
 
Create it under that person's account, as a domain, not as a subdomain.

As long as it's on the same server, DNS and everything else will work.

Jeff
 
Back
Top