Mercurial > hg > nginx-site
comparison xml/en/docs/example.xml @ 2206:5cacd6fffade
Eliminated some examples of unsafe prefix locations.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 27 Apr 2018 09:59:51 +0300 |
parents | 442efe0268db |
children |
comparison
equal
deleted
inserted
replaced
2205:e325638a6f34 | 2206:5cacd6fffade |
---|---|
6 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> | 6 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
7 | 7 |
8 <article name="Example nginx configuration" | 8 <article name="Example nginx configuration" |
9 link="/en/docs/example.html" | 9 link="/en/docs/example.html" |
10 lang="en" | 10 lang="en" |
11 rev="2"> | 11 rev="3"> |
12 | 12 |
13 <section> | 13 <section> |
14 | 14 |
15 <para> | 15 <para> |
16 An example site configuration that passes all requests to the backend except | 16 An example site configuration that passes all requests to the backend except |
114 charset koi8-r; | 114 charset koi8-r; |
115 } | 115 } |
116 | 116 |
117 error_page 404 /404.html; | 117 error_page 404 /404.html; |
118 | 118 |
119 location /404.html { | 119 location = /404.html { |
120 root /spool/www; | 120 root /spool/www; |
121 } | 121 } |
122 | 122 |
123 location /old_stuff/ { | 123 location /old_stuff/ { |
124 rewrite ^/old_stuff/(.*)$ /new_stuff/$1 permanent; | 124 rewrite ^/old_stuff/(.*)$ /new_stuff/$1 permanent; |