mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
commit
61ee3d36d0
1 file changed
+2
-2
+2
-2
@@ -122,10 +122,10 @@ Comma-separated list of URL rewrites in the form of
|
|||||||
`uri_pattern=file_or_directory_path`. When Mongoose receives the request,
|
`uri_pattern=file_or_directory_path`. When Mongoose receives the request,
|
||||||
it constructs the file name to show by combining `document_root` and the URI.
|
it constructs the file name to show by combining `document_root` and the URI.
|
||||||
However, if the rewrite option is used and `uri_pattern` matches the
|
However, if the rewrite option is used and `uri_pattern` matches the
|
||||||
requested URI, then `document_root` is ignored. Insted,
|
requested URI, then `document_root` is ignored. Instead,
|
||||||
`file_or_directory_path` is used, which should be a full path name or
|
`file_or_directory_path` is used, which should be a full path name or
|
||||||
a path relative to the web server's current working directory. Note that
|
a path relative to the web server's current working directory. Note that
|
||||||
`uri_pattern`, as all mongoose patterns, is a prefix pattern. If `uri_patters`
|
`uri_pattern`, as all mongoose patterns, is a prefix pattern. If `uri_pattern`
|
||||||
is a number, then it is treated as HTTP error code, and `file_or_directory_path`
|
is a number, then it is treated as HTTP error code, and `file_or_directory_path`
|
||||||
should be an URI to redirect to. Mongoose will issue `302` temporary redirect
|
should be an URI to redirect to. Mongoose will issue `302` temporary redirect
|
||||||
to the specified URI, appending two parameters:
|
to the specified URI, appending two parameters:
|
||||||
|
|||||||
Reference in new issue
Block a user