Home Forums OS X Server and Client Discussion Questions and Answers Subdomains and zone files

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #355668
    Anonymous
    Participant

    Hello all,

    I am a newbie here (and to server setup in general), but I have hit a roadblock with my Mac OS X Server. I am hosting over a DSL connection, so I gave my ISP the info concerning my domain name and IP, they do my dns, and everything works super. So now I want to setup subdomains, (i.e. subdomain.mysite.com), and route them through to different folders on the server. How do I accomplish this? I bet I will have to setup a zone file, can I then use that to point to a certain folder in the directory tree? I realize this a tall order which is vague on the details, but I am a quick learner, and I would appriciate and assistance you could offer. Thanks in advance.

    — whit

    #355683
    Camelot
    Participant

    Agreed, what you want is virtual hosts, not subdomains.

    Besides, even if you were to use subdomains, you’d still need to setup virtual hosts on Apache to serve them.

    Subdomains are used to categorize a related set of servers/hostnames, for example, company.com might have a ‘newyork.company.com’ subdomain that lists their servers in their New York offices (mail.newyork.company.com, vpn.newyork.company.com, etc.) and a ‘london.company.com’ subdomain that does the same thing for the London offices (mail.london.company.com, vpn.london.company.com, etc.)
    (there are others logicial breakdowns for subdomains, but geographic location is one of the commonest)

    It sounds as though all you want to do is have another hostname in your domain.

    Since your ISP handles your DNS, they should be able to add a host record very easily. Then you need to tell Apache what to do when a request for that hostname comes in.

    Typically you’ll do this in the GUI tool for setting up the web server. Create a new virtual server with the new hostname you’ve chosen and choose the alternate folder to use as that site’s document root.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed