FreeBSD Bugzilla – Attachment 94385 Details for
Bug 132528
[patch] www/apache22 no-accf fix
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.77 KB, created by
Bjoern A. Zeeb
on 2009-03-11 09:10:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Bjoern A. Zeeb
Created:
2009-03-11 09:10:02 UTC
Size:
1.77 KB
patch
obsolete
>Index: www/apache22/files/patch-server__core.c >=================================================================== >RCS file: www/apache22/files/patch-server__core.c >diff -N www/apache22/files/patch-server__core.c >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ www/apache22/files/patch-server__core.c 11 Mar 2009 08:35:07 -0000 >@@ -0,0 +1,36 @@ >+--- ./server/core.c.orig 2008-06-02 23:18:18.000000000 +0200 >++++ ./server/core.c 2009-03-09 15:05:57.000000000 +0100 >+@@ -494,6 +494,7 @@ >+ core_server_config *base = (core_server_config *)basev; >+ core_server_config *virt = (core_server_config *)virtv; >+ core_server_config *conf; >++ const char *accfb, *accfc; >+ >+ conf = (core_server_config *)apr_pmemdup(p, virt, sizeof(core_server_config)); >+ >+@@ -509,6 +510,25 @@ >+ conf->protocol = base->protocol; >+ } >+ >++ /* >++ * bz accept_filter(9) disable fix. >++ * >++ * You can only configure it in the base config but the >++ * values are copied and checked into virtual host configs, >++ * so if you disable it in base it will still be on in virt. >++ * To fix it, we overwrite each virt config if it does not >++ * match what is in base config for the hardcoded http(s). >++ */ >++ accfb = apr_table_get(base->accf_map, "http"); >++ accfc = apr_table_get(conf->accf_map, "http"); >++ if (accfb && accfc && strcmp(accfb, accfc)) >++ apr_table_set(conf->accf_map, "http", accfb); >++ >++ accfb = apr_table_get(base->accf_map, "https"); >++ accfc = apr_table_get(conf->accf_map, "https"); >++ if (accfb && accfc && strcmp(accfb, accfc)) >++ apr_table_set(conf->accf_map, "https", accfb); >++ >+ conf->sec_dir = apr_array_append(p, base->sec_dir, virt->sec_dir); >+ conf->sec_url = apr_array_append(p, base->sec_url, virt->sec_url); >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 132528
: 94385