Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Probably not the best title, but I am not sure how to describe in a few words.

Alright; I wish to have an "overall" domain to view my websites in browser. Like I would like to have, eg. to work as my "overall" domain, so I could access the sites I'm hosting like "" - on "" (or somewhat near).

I need to locate the corresponding website, based on that subdomain, and serve it to the browser. Much like i can FTP into "" with the user "" to access the FTP account.

Is this possbible and how can it be done? I hope I meane this clear.

Thank you!

share|improve this question
up vote 1 down vote accepted

It's a matter of configuring DNS correctly, combined with configuring virtual hosts on your web server. If you have the ability to manage your site's DNS entries and your web server configuration, this is easy enough to do.

share|improve this answer
I have, just have failed to do so. I will have to try again... – janhartmann Dec 2 '09 at 17:21

You might be interested in the VirtualDocumentRoot directive if you're using apache: It would allow you to use one configuration for many sites, e.g.:

<VirtualHost *>
    VirtualDocumentRoot /www/%0/docs

Now if you enter in the browser it would try to load the files from /www/ etc.

Configuring DNS for that is much easier. You just have to create a DNS record for * to point to your server`s IP address.

share|improve this answer
That's cool! I always like to explicitly name everything (I don't like surprises), so this option was unknown to me. I'll have to jot this one down for future reference. I can see where it might come in handy. – Geoff Fritz Dec 2 '09 at 18:09
I am hosting multiple websites on a IP address (and using IIS) - is this still possible? I need to bind the subdomain-host name to the "" files. So confusing! :P – janhartmann Dec 3 '09 at 7:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.