Send modauthtkt-users mailing list submissions to
        modauthtkt-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/modauthtkt-users
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of modauthtkt-users digest..."


Today's Topics:

   1. [Patch] Allow use behind mod_proxy (Charlie Brady)


----------------------------------------------------------------------

Message: 1
Date: Fri, 3 Nov 2006 12:11:37 -0500 (EST)
From: Charlie Brady <[EMAIL PROTECTED]>
Subject: [modauthtkt-users] [Patch] Allow use behind mod_proxy
To: modauthtkt-users@lists.sourceforge.net
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed


Use X-Forwarded-Host header in preference to Host header, if available.

This is only part of the puzzle I'm dealing with, as auto-determination of 
default AuthDomain doesn't work as-is, and I have to hard code it in 
configuration, but this is a start.

Without this patch, the redirect back URL isn't accessible to the original 
requester.

--- mod_auth_tkt-2.0.0rc1/src/mod_auth_tkt.c    2006-04-05 
03:12:43.000000000 -0400
+++ mezzanine_patched_mod_auth_tkt-2.0.0rc1/src/mod_auth_tkt.c  2006-11-02 
17:45:09.000000000 -0500
@@ -1042,8 +1042,12 @@
    }

    /* Build back URL */
-  /* Use Host header for host:port info if available */
-  hostinfo = apr_table_get(r->headers_in, "Host");
+  /* Use X-Forward-Host header for host:port info if available */
+  /* Failing that, use Host header */
+  hostinfo = apr_table_get(r->headers_in, "X-Forwarded-Host");
+  if (! hostinfo) {
+    hostinfo = apr_table_get(r->headers_in, "Host");
+  }
    if (! hostinfo) {
      /* Fallback to using r->hostname and the server port. This usually
         works, but behind a reverse proxy the port may well be wrong.




------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

------------------------------

_______________________________________________
modauthtkt-users mailing list
modauthtkt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/modauthtkt-users


End of modauthtkt-users Digest, Vol 6, Issue 3
**********************************************

Reply via email to