Changeset 2439 for branches/fc19-dev
- Timestamp:
- Jun 21, 2013, 12:36:29 AM (11 years ago)
- Location:
- branches/fc19-dev/server/common/patches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc19-dev/server/common/patches/httpd-304s.patch
r2422 r2439 1 From 1ee367569729f9cf153cd1df87e15e05e00d7645Mon Sep 17 00:00:00 20011 From 8211f350ce390b8b426b817e0fb7892c91c12c63 Mon Sep 17 00:00:00 2001 2 2 From: Alexander Chernyakhovsky <achernya@mit.edu> 3 3 Date: Fri, 3 May 2013 21:40:07 -0400 -
branches/fc19-dev/server/common/patches/httpd-fixup-vhost.patch
r2422 r2439 1 From 2e62dad3d91280032b2130f02553c968d306edf5Mon Sep 17 00:00:00 20011 From 373eb8f72153417173d8ecdf11223fba0a740c19 Mon Sep 17 00:00:00 2001 2 2 From: Alexander Chernyakhovsky <achernya@mit.edu> 3 3 Date: Fri, 3 May 2013 22:43:28 -0400 … … 37 37 * Reserve some modules slots for modules loaded by other means than 38 38 diff --git a/server/config.c b/server/config.c 39 index bc0804a.. 488954d10064439 index bc0804a..22a131e 100644 40 40 --- a/server/config.c 41 41 +++ b/server/config.c -
branches/fc19-dev/server/common/patches/httpd-mod_status-security.patch
r2422 r2439 1 From 0c2aac95f8df4e7c243ea00d54d4050e32f7868bMon Sep 17 00:00:00 20011 From 6fc43320aab74560a5aad10f6602309f9de9b762 Mon Sep 17 00:00:00 2001 2 2 From: Alexander Chernyakhovsky <achernya@mit.edu> 3 3 Date: Fri, 3 May 2013 21:39:17 -0400 … … 11 11 Signed-off-by: Geoffrey Thomas <geofft@mit.edu> 12 12 --- 13 modules/generators/mod_status.c | 60 +++++++++++++++++++++++++++++++++++++--14 1 file changed, 57 insertions(+), 3deletions(-)13 modules/generators/mod_status.c | 33 +++++++++++++++++++++++++++++---- 14 1 file changed, 29 insertions(+), 4 deletions(-) 15 15 16 16 diff --git a/modules/generators/mod_status.c b/modules/generators/mod_status.c 17 index 0237f1d.. c7fd0e010064417 index 0237f1d..5a9ea7b 100644 18 18 --- a/modules/generators/mod_status.c 19 19 +++ b/modules/generators/mod_status.c 20 @@ -103,6 +103, 56@@ APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ap, STATUS, int, status_hook,20 @@ -103,6 +103,27 @@ APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ap, STATUS, int, status_hook, 21 21 static pid_t child_pid; 22 22 #endif … … 25 25 + int permit_status_handler; 26 26 +} status_config_rec; 27 +28 +/*29 + * command-related code. This is here to prevent use of ExtendedStatus30 + * without status_module included.31 + */32 +static const char *set_extended_status(cmd_parms *cmd, void *dummy, int arg)33 +{34 + const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);35 + if (err != NULL) {36 + return err;37 + }38 + ap_extended_status = arg;39 + return NULL;40 +}41 +42 +static const char *set_reqtail(cmd_parms *cmd, void *dummy, int arg)43 +{44 + const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);45 + if (err != NULL) {46 + return err;47 + }48 + ap_mod_status_reqtail = arg;49 + return NULL;50 +}51 27 + 52 28 +static void *create_status_dir_config(apr_pool_t *p, char *d) … … 59 35 +static const command_rec status_module_cmds[] = 60 36 +{ 61 + AP_INIT_FLAG("ExtendedStatus", set_extended_status, NULL, RSRC_CONF,62 + "\"On\" to enable extended status information, \"Off\" to disable"),63 + AP_INIT_FLAG("SeeRequestTail", set_reqtail, NULL, RSRC_CONF,64 + "For verbose requests, \"On\" to see the last 63 chars of the request, "65 + "\"Off\" (default) to see the first 63 in extended status display"),66 37 + AP_INIT_FLAG("PermitStatusHandler", ap_set_flag_slot, 67 38 + (void *)APR_OFFSETOF(status_config_rec, permit_status_handler), … … 75 46 static void format_byte_out(request_rec *r, apr_off_t bytes) 76 47 { 77 @@ -207,8 +2 57,12 @@ static int status_handler(request_rec *r)48 @@ -207,8 +228,12 @@ static int status_handler(request_rec *r) 78 49 int times_per_thread; 79 50 #endif … … 90 61 } 91 62 92 @@ -974, 7 +1028,7@@ static void register_hooks(apr_pool_t *p)63 @@ -974,11 +999,11 @@ static void register_hooks(apr_pool_t *p) 93 64 AP_DECLARE_MODULE(status) = 94 65 { … … 99 70 NULL, /* server config */ 100 71 NULL, /* merge server config */ 72 - NULL, /* command table */ 73 + status_module_cmds, /* command table */ 74 register_hooks /* register_hooks */ 75 }; 76 101 77 -- 102 78 1.7.9.6 (Apple Git-31.1)
Note: See TracChangeset
for help on using the changeset viewer.