Default server block for HTTP requests

AKSHAYAA MOHAN akshayaamohan05 at gmail.com
Tue Oct 4 16:34:16 UTC 2016


Hi,

We have configured default server block as follows.

server {
    listen 7777 default_server;
    server_name _;
    access_log /usr/share/nginx/access_logs/7777;
    error_log /usr/share/nginx/error_logs/7777 warn;
    server_tokens off;
    underscores_in_headers on;
    return 444;
}

When trying to access the HTTP endpoint with this port, the default server
block is always getting picked up although there is an exact match server
block.

This does not happen for SSL requests. The default server block configured
for non ssl and ssl differ only w.r.t ssl directives. Not sure what we are
missing here. Please help.

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20161004/ab38559e/attachment.html>


More information about the nginx-devel mailing list