annotate docs/html/index.html @ 6227:bd55d75a1410

Fixed wrong URI after try_files in nested location (ticket #97). The following configuration with alias, nested location and try_files resulted in wrong file being used. Request "/foo/test.gif" tried to use "/tmp//foo/test.gif" instead of "/tmp/test.gif": location /foo/ { alias /tmp/; location ~ gif { try_files $uri =405; } } Additionally, rev. c985d90a8d1f introduced a regression if the "/tmp//foo/test.gif" file was found (ticket #768). Resulting URI was set to "gif?/foo/test.gif", as the code used clcf->name of current location ("location ~ gif") instead of parent one ("location /foo/"). Fix is to use r->uri instead of clcf->name in all cases in the ngx_http_core_try_files_phase() function. It is expected to be already matched and identical to the clcf->name of the right location.
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 16 Aug 2015 10:51:34 +0300
parents ed470a7bf7fd
children 67c68cd973b8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4834
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
1 <!DOCTYPE html>
450
551102312e19 nginx-0.1.0-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
2 <html>
551102312e19 nginx-0.1.0-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
3 <head>
551102312e19 nginx-0.1.0-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
4 <title>Welcome to nginx!</title>
4834
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
5 <style>
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
6 body {
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
7 width: 35em;
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
8 margin: 0 auto;
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
9 font-family: Tahoma, Verdana, Arial, sans-serif;
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
10 }
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
11 </style>
450
551102312e19 nginx-0.1.0-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
12 </head>
4834
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
13 <body>
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
14 <h1>Welcome to nginx!</h1>
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
15 <p>If you see this page, the nginx web server is successfully installed and
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
16 working. Further configuration is required.</p>
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
17
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
18 <p>For online documentation and support please refer to
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
19 <a href="http://nginx.org/">nginx.org</a>.<br/>
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
20 Commercial support is available at
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
21 <a href="http://nginx.com/">nginx.com</a>.</p>
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
22
ed470a7bf7fd Improved welcome page.
Valentin Bartenev <vbart@nginx.com>
parents: 450
diff changeset
23 <p><em>Thank you for using nginx.</em></p>
450
551102312e19 nginx-0.1.0-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
24 </body>
551102312e19 nginx-0.1.0-RELEASE import
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
25 </html>