Skip to content

Commit ef631be

Browse files
committed
Merge pull request openresty#7 from kaiwangchen/master
various typo fixes.
2 parents 755a4e6 + 7ee1039 commit ef631be

4 files changed

+5
-5
lines changed

en/01-NginxVariables06.tut

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ construct such a horrible example:
212212
Here we use our old friend, the L<ngx_map/map> directive, to map the value of
213213
the built-in variable L<ngx_core/$uri> to our user variable C<$tag>. When
214214
L<ngx_core/$uri> takes the value C</main>, the value C<1> is assigned to
215-
C<$tags>; when L<ngx_core/$uri> takes the value C</sub>, the value C<2> is
216-
assigned instead to C<$tags>; under all the other conditions, C<0> is assigned.
215+
C<$tag>; when L<ngx_core/$uri> takes the value C</sub>, the value C<2> is
216+
assigned instead to C<$tag>; under all the other conditions, C<0> is assigned.
217217
Next, in C</main>, we first initiate a subrequest to C</sub> by using the
218218
L<ngx_auth_request/auth_request> directive, and then output the value of
219219
C<$tag>. And within C</sub>, we directly output the value of C<$tag>. Guess

en/02-NginxDirectiveExecOrder01.tut

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ There ain't any Nginx bug here, or we'd rather rephrase it as a
3636
feature, and it's a long story. When Nginx handles every request,
3737
the execution follows a few predefined phases.
3838

39-
There can be altogehter 11 phases when Nginx handles a request, let's
39+
There can be altogether 11 phases when Nginx handles a request, let's
4040
start with three most common ones: C<rewrite>, C<access> and C<content>
4141
(later on the other phases will be addressed)
4242

en/02-NginxDirectiveExecOrder07.tut

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ is F</home/agentzh/test/html/>.
120120
Many newbies might take it for granted that error C<404> is caused when
121121
the needed C<location> does not exist. The former example tells us,
122122
C<404> error could be returned even if the needed C<location> is configured
123-
and matched. This is because error C<404> means the non-existence of a
123+
and matched. This is because error C<404> means the non-existence of an
124124
abstract "resource", not the specific C<location>.
125125

126126
Another frequent mistake is missing the command for phase C<content>,

en/02-NginxDirectiveExecOrder08.tut

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ from its original address and the proxies in between are transparent. For
106106
this exact purpose, module L<ngx_realip> needs hook handlers in the first
107107
phase, the C<post-read> phase, so the rewriting occurs as early as possible.
108108

109-
Behind C<post-phase> is the C<server-rewrite> phase. We briefly mentioned
109+
Behind C<post-read> is the C<server-rewrite> phase. We briefly mentioned
110110
in L<ordertut/ (02)>, when module L<ngx_rewrite> and its commands are configured
111111
in C<server> directive, they basically execute in C<server-rewrite> phase.
112112
We have an example below:

0 commit comments

Comments
 (0)