changed httpd-std.c to drop a query request not beginning with a slash when it's handled locally.
This commit is contained in:
@ -465,7 +465,6 @@ static int get_server_root (
|
||||
if (qinfo->client->status & QSE_HTTPD_CLIENT_INTERCEPTED)
|
||||
{
|
||||
/* transparent proxying */
|
||||
|
||||
if (loccfg->proxy.allow_intercept)
|
||||
{
|
||||
root->type = QSE_HTTPD_SERVERSTD_ROOT_PROXY;
|
||||
@ -589,6 +588,7 @@ static int get_server_root (
|
||||
}
|
||||
|
||||
/* local file system */
|
||||
|
||||
root->type = QSE_HTTPD_SERVERSTD_ROOT_PATH;
|
||||
root->u.path.val = loccfg->xcfg[XCFG_ROOT];
|
||||
root->u.path.rpl = loccfg->locname.len;
|
||||
|
@ -28,6 +28,7 @@ server-default {
|
||||
# document root
|
||||
####################################################################
|
||||
root = "/var/www";
|
||||
#root = "1.2.3.4:80";
|
||||
|
||||
# pseudonym to use in Via: for proxying
|
||||
#pseudonym = "my-host";
|
||||
|
Reference in New Issue
Block a user