|
|
|
@ -283,6 +283,7 @@ static gboolean rewrite_internal(liVRequest *vr, GString *dest_path, GString *de
|
|
|
|
|
switch (rp->data.cond_lval) {
|
|
|
|
|
case LI_COMP_REQUEST_LOCALIP: str = vr->con->srv_sock->local_addr_str; break;
|
|
|
|
|
case LI_COMP_REQUEST_REMOTEIP: str = vr->con->remote_addr_str; break;
|
|
|
|
|
case LI_COMP_REQUEST_SCHEME: str = NULL; break;
|
|
|
|
|
case LI_COMP_REQUEST_PATH: str = vr->request.uri.path; break;
|
|
|
|
|
case LI_COMP_REQUEST_HOST: str = vr->request.uri.host; break;
|
|
|
|
|
case LI_COMP_REQUEST_QUERY_STRING: str = vr->request.uri.query; break;
|
|
|
|
|