Opened 5 months ago

Closed 3 months ago

#2348 closed defect (fixed)

documentation uses incorrect quotes results in config file error

Reported by: dlai.mobile@… Owned by:
Priority: minor Milestone:
Component: documentation Version: 1.19.x
Keywords: Cc: dlai.mobile@…
uname -a: Linux 4.18.0-348.12.2.el8_5.x86_64
nginx -V: nginx version: nginx/1.14.1

Description

The web page: https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/

contains a few example configs for auth_basic

The examples use the wrong quote (ie. “” versus "" characters) - if you copy the examples into a config file nginx will not start - and complains of configuration errors.

The documentation says (in 2 places):

location /api {

auth_basic “Administrator’s Area”;
#...

}

Note the quote characters used.

It should read instead:

location /api {

auth_basic "Administrator’s Area";
#...

}

Change History (1)

comment:1 by Sergey Kandaurov, 3 months ago

Resolution: fixed
Status: newclosed

Fixed, thanks for report.

Note: See TracTickets for help on using tickets.