Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

1 Answer 1

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.