Skip to content

Commit 9d0f4a7

Browse files
apgordon312mjang
andauthored
Update web-server.md (#506)
Removed gerunds from headings. Co-authored-by: Mike Jang <3287976+mjang@users.noreply.github.com>
1 parent 33a8a25 commit 9d0f4a7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/nginx/admin-guide/web-server/web-server.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Each virtual server for HTTP traffic defines special configuration instances cal
1919

2020

2121
<span id="virtual-server"></span>
22-
## Setting Up Virtual Servers
22+
## Set Up Virtual Servers
2323

2424
The NGINX Plus configuration file must include at least one [server](https://nginx.org/en/docs/http/ngx_http_core_module.html#server) directive to define a virtual server. When NGINX Plus processes a request, it first selects the virtual server that will serve the request.
2525

@@ -76,7 +76,7 @@ server {
7676

7777

7878
<span id="locations"></span>
79-
## Configuring Locations
79+
## Configure Locations
8080

8181
NGINX Plus can send traffic to different proxies or serve different files based on the request URIs. These blocks are defined using the [location](https://nginx.org/en/docs/http/ngx_http_core_module.html#location) directive placed within a `server` directive.
8282

@@ -148,15 +148,15 @@ The [proxy_pass](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy
148148

149149

150150
<span id="variables"></span>
151-
## Using Variables
151+
## Use Variables
152152

153153
You can use variables in the configuration file to have NGINX Plus process requests differently depending on defined circumstances. Variables are named values that are calculated at runtime and are used as parameters to directives. A variable is denoted by the `$` (dollar) sign at the beginning of its name. Variables define information based upon NGINX’s state, such as the properties of the request being currently processed.
154154

155155
There are a number of predefined variables, such as the [core HTTP](https://nginx.org/en/docs/http/ngx_http_core_module.html#variables) variables, and you can define custom variables using the [set](https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#set), [map](https://nginx.org/en/docs/http/ngx_http_map_module.html#map), and [geo](https://nginx.org/en/docs/http/ngx_http_geo_module.html#geo) directives. Most variables are computed at runtime and contain information related to a specific request. For example, `$remote_addr` contains the client IP address and `$uri` holds the current URI value.
156156

157157

158158
<span id="return-codes"></span>
159-
## Returning Specific Status Codes
159+
## Return Specific Status Codes
160160

161161
Some website URIs require immediate return of a response with a specific error or redirect code, for example when a page has been moved temporarily or permanently. The easiest way to do this is to use the [return](https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#return) directive. For example:
162162

@@ -180,7 +180,7 @@ The `return` directive can be included in both the `location` and `server` conte
180180

181181

182182
<span id="rewrite"></span>
183-
## Rewriting URIs in Requests
183+
## Rewrite URIs in Requests
184184

185185
A request URI can be modified multiple times during request processing through the use of the [rewrite](https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite) directive, which has one optional and two required parameters. The first (required) parameter is the regular expression that the request URI must match. The second parameter is the URI to substitute for the matching URI. The optional third parameter is a flag that can halt processing of further `rewrite` directives or send a redirect (code `301` or `302`). For example:
186186

@@ -217,7 +217,7 @@ There are two parameters that interrupt processing of `rewrite` directives:
217217

218218

219219
<span id="sub_filter"></span>
220-
## Rewriting HTTP Responses
220+
## Rewrite HTTP Responses
221221

222222
Sometimes you need to rewrite or change the content in an HTTP response, substituting one string for another. You can use the [sub_filter](https://nginx.org/en/docs/http/ngx_http_sub_module.html#sub_filter) directive to define the rewrite to apply. The directive supports variables and chains of substitutions, making more complex changes possible.
223223

@@ -244,7 +244,7 @@ Note that the part of the response already modified with the `sub_filter` is not
244244

245245

246246
<span id="errors"></span>
247-
## Handling Errors
247+
## Handle Errors
248248

249249
With the [error_page](https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page) directive, you can configure NGINX Plus to return a custom page along with an error code, substitute a different error code in the response, or redirect the browser to a different URI. In the following example, the `error_page` directive specifies the page (**/404.html**) to return with the `404` error code.
250250

0 commit comments

Comments
 (0)