Index: docs/manual/expr.xml =================================================================== --- docs/manual/expr.xml (revision 1754984) +++ docs/manual/expr.xml (working copy) @@ -230,6 +230,8 @@ "GET /index.html HTTP/1.1") REMOTE_ADDR The IP address of the remote host + REMOTE_PORT + The port of the remote host REMOTE_HOST The host name of the remote host REMOTE_USER Index: server/util_expr_eval.c =================================================================== --- server/util_expr_eval.c (revision 1754984) +++ server/util_expr_eval.c (working copy) @@ -1456,6 +1456,7 @@ "SERVER_PROTOCOL_VERSION", /* 29 */ "SERVER_PROTOCOL_VERSION_MAJOR", /* 30 */ "SERVER_PROTOCOL_VERSION_MINOR", /* 31 */ + "REMOTE_PORT", /* 32 */ NULL }; @@ -1562,6 +1563,8 @@ case 9: return "9"; } return apr_psprintf(ctx->p, "%d", HTTP_VERSION_MINOR(r->proto_num)); + case 32: + return apr_psprintf(ctx->p, "%u", ctx->c->client_addr->port); default: ap_assert(0); return NULL;