Opened 3 years ago

Closed 3 years ago

#2295 closed defect (invalid)

Incorrect path in beginners_guide.html

Reported by: protohuf@… Owned by:
Priority: trivial Milestone:
Component: documentation Version: 1.19.x
Keywords: Cc:
uname -a:
nginx -V: irrelevant

Description

In the beginners guide, section "Serving Static Content" a directive for location /images/ is created. The path is set to: "root /data;" but should be "/data/images".

Note: This error occurs in 3 places in beginners_guide.html

Change History (1)

comment:1 by Maxim Dounin, 3 years ago

Resolution: invalid
Status: newclosed

As long as images are in /data/images/, and these are expected to be available via requests like /images/example.png, the root /data; is perfectly correct. Note that path to a file is formed as <root> + <URI>, and in this case it would be /data + /images/example.png.

See root directive description for additional information and examples.

Note: See TracTickets for help on using tickets.