mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix proxy_redirect name in error message
This commit is contained in:
parent
7e3fdc4e8e
commit
931d88c7c1
@ -1913,7 +1913,7 @@ ngx_http_proxy_create_loc_conf(ngx_conf_t *cf)
|
|||||||
* conf->body_set_len = NULL;
|
* conf->body_set_len = NULL;
|
||||||
* conf->body_set = NULL;
|
* conf->body_set = NULL;
|
||||||
* conf->body_source = { 0, NULL };
|
* conf->body_source = { 0, NULL };
|
||||||
* conf->rewrite_locations = NULL;
|
* conf->redirects = NULL;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
conf->upstream.store = NGX_CONF_UNSET;
|
conf->upstream.store = NGX_CONF_UNSET;
|
||||||
@ -2756,7 +2756,7 @@ ngx_http_proxy_redirect(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
if (ngx_strcmp(value[1].data, "default") == 0) {
|
if (ngx_strcmp(value[1].data, "default") == 0) {
|
||||||
if (plcf->url.data == NULL) {
|
if (plcf->url.data == NULL) {
|
||||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||||
"\"proxy_rewrite_location default\" must go "
|
"\"proxy_redirect default\" must go "
|
||||||
"after the \"proxy_pass\" directive");
|
"after the \"proxy_pass\" directive");
|
||||||
return NGX_CONF_ERROR;
|
return NGX_CONF_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user