Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Hi I'm wondering how hosts setup vhosts. It's an issue because the php scripts I use require the Server name to be set. For example with ukhost4u they said I just need to point my existing domain to their name servers but how does that in turn set the server name? Is it not manually configured ?

share|improve this question

If you are not familiar with setting up apache or setting hostnames I would check out the Rackspace CloudServer docs.

Those cover most of the basic setup of apache and virutalhosts.

share|improve this answer

Unless they've already set the DNS up for you (or you've done it there), then changing the nameservers won't fix anything.

You need to ensure you have DNS for the domain or subdomain pointing to your server, then you need to make sure the server will serve the correct domain for this IP (which is where the vhosts come in).

See for an explanation and see these two articles for instructions setting them up on CentOS. If you run a different distribution, please include more information in your question.

share|improve this answer

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.