1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

* Print the correct error message for erroneous configured ProxyPass directives.

PR: 40439
Submitted by: serai lans-tv.com
Reviewed by: rpluem


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@441947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ruediger Pluem
2006-09-10 12:37:21 +00:00
parent 01a2b32113
commit ef038e0617
2 changed files with 17 additions and 5 deletions

View File

@@ -1124,11 +1124,20 @@ static const char *
else {
char *val = strchr(word, '=');
if (!val) {
if (cmd->path)
return "Invalid ProxyPass parameter. Parameter must be "
"in the form 'key=value'";
else
return "ProxyPass can not have a path when defined in a location";
if (cmd->path) {
if (*r == '/') {
return "ProxyPass can not have a path when defined in "
"a location.";
}
else {
return "Invalid ProxyPass parameter. Parameter must "
"be in the form 'key=value'.";
}
}
else {
return "Invalid ProxyPass parameter. Parameter must be "
"in the form 'key=value'.";
}
}
else
*val++ = '\0';