Skip to content

Commit ee0348e

Browse files
authored
Update how-to-use-nginx.md
1 parent bfb53bd commit ee0348e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/hypernode-platform/nginx/how-to-use-nginx.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,17 @@ You can expand this map with multiple rules:
158158
map $uri $out_redirect {
159159
~/old-page /new-page;
160160
~/blog/(.*) /articles/$1;
161-
~/deprecated /; }
161+
~/deprecated /;
162+
}
162163
```
163164

164165
Step 2: Apply the Redirect in the Server Block
165166

166167
`/data/web/nginx/server.*`
167168

168169
```nginx
169-
if ($out_redirect) { rewrite 301 $out_redirect;
170+
if ($out_redirect) {
171+
rewrite 301 $out_redirect;
170172
}
171173
```
172174

0 commit comments

Comments
 (0)