Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

When I type the domain name I linked to my server IP, one of the virtual host websites I have on the server comes up, rather than the index.html file I have as default on the server. Why is this so? I am using Nginx, these are my configuration files:


the domain that gets served (replaced domain with

share|improve this question

To let Nginx process the "default" directive, you may do the following two changes.

  • Change listen 8080; to listen 8080 default_server;
  • Change server_name localhost; to server_name _;

Please let me know, if it works (or not).

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.