summaryrefslogtreecommitdiffstats
path: root/mod_log_sql.c
diff options
context:
space:
mode:
authorGravatar Christopher Powell 2002-04-08 06:35:04 +0000
committerGravatar Christopher Powell 2002-04-08 06:35:04 +0000
commitee7d474d17c84fc9549e2c9d33a4e6f982b2da12 (patch)
tree6780ca2430265529e8b329bbf774fa90bedffb57 /mod_log_sql.c
parentc46c8ac083b851d35137ae455eef0c8622dc07c7 (diff)
Added - but did not activate - routines to handle proxy environment variables.
Diffstat (limited to 'mod_log_sql.c')
-rw-r--r--mod_log_sql.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/mod_log_sql.c b/mod_log_sql.c
index 61c1ed9..62e9784 100644
--- a/mod_log_sql.c
+++ b/mod_log_sql.c
@@ -1,4 +1,4 @@
1/* $Id: mod_log_sql.c,v 1.6 2002/04/02 20:19:30 helios Exp $ */ 1/* $Id: mod_log_sql.c,v 1.7 2002/04/08 06:35:04 helios Exp $ */
2 2
3 3
4/* DEFINES */ 4/* DEFINES */
@@ -350,6 +350,23 @@ static const char *extract_cookie(request_rec *r, char *a)
350 return "-"; 350 return "-";
351} 351}
352 352
353/*
354static const char *extract_forwarded(request_rec *r, char *a)
355{
356 return table_get(r->subprocess_env, "HTTP_FORWARDED");
357}
358
359static const char *extract_via(request_rec *r, char *a)
360{
361 return table_get(r->subprocess_env, "HTTP_VIA");
362}
363
364static const char *extract_forwarded_for(request_rec *r, char *a)
365{
366 return table_get(r->subprocess_env, "HTTP_X_FORWARDED_FOR");
367}
368*/
369
353static const char *extract_request_timestamp(request_rec *r, char *a) 370static const char *extract_request_timestamp(request_rec *r, char *a)
354{ 371{
355 char tstr[32]; 372 char tstr[32];
@@ -365,7 +382,7 @@ static const char *extract_note(request_rec *r, char *a)
365 382
366static const char *extract_env_var(request_rec *r, char *a) 383static const char *extract_env_var(request_rec *r, char *a)
367{ 384{
368 return table_get(r->subprocess_env, a); 385 return table_get(r->subprocess_env, "HTTP_USER_AGENT");
369} 386}
370 387
371/* End declarations of various extract_ functions */ 388/* End declarations of various extract_ functions */
@@ -403,6 +420,10 @@ struct log_mysql_item_list {
403 { 'u', extract_remote_user, "remote_user", 0, 1 }, 420 { 'u', extract_remote_user, "remote_user", 0, 1 },
404 { 'U', extract_request_uri, "request_uri", 1, 1 }, 421 { 'U', extract_request_uri, "request_uri", 1, 1 },
405 { 'v', extract_virtual_host, "virtual_host", 0, 1 }, 422 { 'v', extract_virtual_host, "virtual_host", 0, 1 },
423/* { 'V', extract_via, "via", 0, 1 },
424 { 'w', extract_forwarded, "forwarded", 0, 1 },
425 { 'W', extract_forwarded_for, "forwarded_for", 0, 1 },
426 */
406 #ifdef WANT_SSL_LOGGING 427 #ifdef WANT_SSL_LOGGING
407 { 'q', extract_ssl_keysize, "ssl_keysize", 0, 1 }, 428 { 'q', extract_ssl_keysize, "ssl_keysize", 0, 1 },
408 { 'Q', extract_ssl_maxkeysize, "ssl_maxkeysize", 0, 1 }, 429 { 'Q', extract_ssl_maxkeysize, "ssl_maxkeysize", 0, 1 },