changed httpd-std.c to drop a query request not beginning with a slash when it's handled locally.

This commit is contained in:
2014-10-09 12:46:12 +00:00
parent 65f3c473f9
commit bd40641e08
4 changed files with 36 additions and 5 deletions

View File

@ -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;

View File

@ -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";