Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Hi I have been following this guide to set up a VPS on Linode: http://themesforge.com/featured/high-performance-wordpress-part-3/

Everything works well, however the domains I have set up just give me the Nginx welcome screen and don't bring up the stuff from their own folder. What might I be doing wrong?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Everything works well, however the domains I have set up just give me the Nginx welcome screen and don't bring up the stuff from their own folder. What might I be doing wrong?

Nginx (and other modern http servers) can host multiple sites on one IP address using the HTTP HOST header, which tells the server which of the sites the browser wishes delivered to it.

Virtual hosts therefore attempt to match this host header to one of the virtual hosts they have. If this cannot be achieved, nginx serves the content from its default site, whichever that is

This is, I suspect what is happening here. As such, I would:

  • Check your virtual host server_name directives match what you're expecting to use.
  • Ensure you're accessing the site through the dns you expect. For example, my host give me a DNS entry like this: myaccount1.vps.myhost.net. Going to there triggers my default handler, because that's the host, whereas http://www.ninefingersisawesome.com goes to the right place.
share|improve this answer
    
damn, that's not a real domain :( –  Sathya May 2 '12 at 13:59
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.