File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4276,7 +4276,7 @@ which is equivalent to
42764276
42774277```lua
42784278
4279- return ngx.redirect("http://localhost:1984 /foo", ngx.HTTP_MOVED_TEMPORARILY)
4279+ return ngx.redirect("/foo", ngx.HTTP_MOVED_TEMPORARILY)
42804280```
42814281
42824282Redirecting arbitrary external URLs is also supported, for example:
Original file line number Diff line number Diff line change @@ -3557,7 +3557,7 @@ Here is an example assuming the current server name is <code>localhost</code> an
35573557which is equivalent to
35583558
35593559<geshi lang="lua">
3560- return ngx.redirect("http://localhost:1984 /foo", ngx.HTTP_MOVED_TEMPORARILY)
3560+ return ngx.redirect("/foo", ngx.HTTP_MOVED_TEMPORARILY)
35613561</geshi>
35623562
35633563Redirecting arbitrary external URLs is also supported, for example:
You can’t perform that action at this time.
0 commit comments