I have been trying to wrap my head around this, read a lot of docs, but
I just cant seem to understand, so if anyone could enlighten me.
I want to set up a default virtual server (vhost) and a spesific vhost.
Does the sequence of these two server blocks in the nginx.conf
I tried something like this:
listen 80 default;
but now mydomain.com allways shows default.html. if i remove “default”
and put that same (the second) server on the top it all works fine…
I would really like to know what is really going on here behind the
scenes, any info much apresiated.
Posted at Nginx Forum: