Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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

http://cloudservers.rackspacecloud.com/index.php/List_of_Articles

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

share|improve this answer
add comment

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 http://articles.slicehost.com/2007/9/17/introduction-to-virtual-hosts 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
add comment

Your Answer

 
discard

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.