mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix with apache 2.4.
Sponsored by: Absolight
This commit is contained in:
parent
5d6171eb2a
commit
5bd67f364a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=369604
2 changed files with 17 additions and 1 deletions
|
@ -14,7 +14,7 @@ COMMENT= Allows users authentication based on external mechanisms
|
||||||
|
|
||||||
LICENSE= APACHE20
|
LICENSE= APACHE20
|
||||||
|
|
||||||
USE_APACHE= 22
|
USE_APACHE= 22+
|
||||||
AP_FAST_BUILD= yes
|
AP_FAST_BUILD= yes
|
||||||
AP_GENPLIST= yes
|
AP_GENPLIST= yes
|
||||||
SHORTMODNAME= auth_external
|
SHORTMODNAME= auth_external
|
||||||
|
|
16
www/mod_auth_external2/files/patch-mod_auth_external.c
Normal file
16
www/mod_auth_external2/files/patch-mod_auth_external.c
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
--- mod_auth_external.c.orig 2006-02-15 22:44:53 UTC
|
||||||
|
+++ mod_auth_external.c
|
||||||
|
@@ -500,8 +500,13 @@
|
||||||
|
if (remote_host != NULL)
|
||||||
|
child_env[i++]= apr_pstrcat(r->pool, ENV_HOST"=", remote_host, NULL);
|
||||||
|
|
||||||
|
+#if MODULE_MAGIC_NUMBER_MAJOR >= 20111130
|
||||||
|
+ if (c->client_ip)
|
||||||
|
+ child_env[i++]= apr_pstrcat(r->pool, ENV_IP"=", c->client_ip, NULL);
|
||||||
|
+#else
|
||||||
|
if (c->remote_ip)
|
||||||
|
child_env[i++]= apr_pstrcat(r->pool, ENV_IP"=", c->remote_ip, NULL);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
if (r->uri)
|
||||||
|
child_env[i++]= apr_pstrcat(r->pool, ENV_URI"=", r->uri, NULL);
|
Loading…
Add table
Reference in a new issue