Problem with subdomain in localhost

Hello! I am trying to create subdomains in my localhost. I want for
2 domains, fil.localhost and test.localhost that point to 2 different
locations. Although I have managed to accomplish that there is a problem
with my localhost: it points to a location too (actually in
and I can’t find out why.
Here is the configuration of the fil.localhost

(test.localhost is exactly the same except that istead of fil.localhost
server_name, it has test.localhost)
Also, here hosts - is my /etc/hosts list.
I haven’t touched nginx.conf or any other file.
Any suggestions are really welcomed :smiley:

Posted at Nginx Forum:

The question is: How does Nginx process a request made with an unknown

The answer is: How nginx processes a request

B. R.