Opened 8 years ago

Last modified 5 years ago

#384 accepted defect

trailing dot in server_name — at Version 1

Reported by: Sergey Kandaurov Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.3.x
Keywords: Cc:
uname -a:
nginx -V: nginx version: nginx/1.5.3
built by clang 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
configure arguments:

Description (last modified by Sergey Kandaurov)

nginx should treat server_name values with and without trailing dot as identical to each other. Thus, it shall warn and continue during configuration syntax check for the below snippet due to conflicting server_name.

    server {
        server_name  localhost;

    server {
        server_name  localhost.;

Change History (2)

comment:1 by Sergey Kandaurov, 8 years ago

Description: modified (diff)

by Leslie Zhai, 7 years ago

Note: See TracTickets for help on using tickets.