Changes with Apache 2.0.44
+ *) mod_setenvif: Add SERVER_ADDR special keyword to allow
+ envariable setting according to the server IP address
+ which received the request. [Ken Coar]
+
*) mod_cgid: Terminate CGI scripts when the client connection
drops. PR 8388 [Jeff Trawick]
*
* Special values for 'name' are:
*
+ * server_addr IP address of interface on which request arrived
+ * (analogous to SERVER_ADDR set in ap_add_common_vars())
* remote_host Remote host name (if available)
* remote_addr Remote IP address
* remote_user Remote authenticated user (if any)
SPECIAL_REMOTE_USER,
SPECIAL_REQUEST_URI,
SPECIAL_REQUEST_METHOD,
- SPECIAL_REQUEST_PROTOCOL
+ SPECIAL_REQUEST_PROTOCOL,
+ SPECIAL_SERVER_ADDR
};
typedef struct {
char *name; /* header name */
else if (!strcasecmp(fname, "request_protocol")) {
new->special_type = SPECIAL_REQUEST_PROTOCOL;
}
+ else if (!strcasecmp(fname, "server_addr")) {
+ new->special_type = SPECIAL_SERVER_ADDR;
+ }
else {
new->special_type = SPECIAL_NOT;
/* Handle fname as a regular expression.
case SPECIAL_REMOTE_ADDR:
val = r->connection->remote_ip;
break;
+ case SPECIAL_SERVER_ADDR:
+ val = r->connection->local_ip;
+ break;
case SPECIAL_REMOTE_HOST:
val = ap_get_remote_host(r->connection, r->per_dir_config,
REMOTE_NAME, NULL);