Opened 3 years ago
Closed 2 years ago
#2348 closed defect (fixed)
documentation uses incorrect quotes results in config file error
Reported by: | 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";
#...
}
Note:
See TracTickets
for help on using tickets.
Fixed, thanks for report.