SSL not initialized properly in a server section containing a syntax error in the server_name directive

Just Marc marc at corky.net
Fri Jun 27 17:32:24 MSD 2008


> nginx treats this as
>
>     server_name hostname.com  ssl  on;
>
> The problem is that "ssl" and "on" may be valid server names.
>
> The server_name directive now checks only "/" symbols in name and
> issues warning
>
>       server name "..." has strange symbols
>
> to prevent
>
>     server_name hostname.com
>     access_log  /path/to/log;
>
> and so.
>   

Maybe we should have a bit that says which directives are allowed to 
span multiple lines?  This doesn't feel robust enough now.

Marc





More information about the nginx mailing list