Re: Requests on a custom module (LocationMatch)??

2008-06-04 Thread karim Bendadda
Thanks Eric for answer,

  No I haven't tried Proxy containers, how can I do this?? Concerning the
module it just a simple one: What I want to do is something like this:

- read request
- read cookie
- decrypt cookie
- if decrypting cookie is OK- I do an *ap_internal_redirect(/auth,r);
*
With in my .conf file:

Location /auth
SetHandler MyModule
ProxyPass   /auth   http://server_auth/auth
ProxyPassReverse /auth  http://server_auth/auth
/Location

The request *http://localhost/auth  *is* *checked by the module ( The
request is redirected to the server).
The request *http://localhost/auth/joe/login.htm* isn't checked by the
module

Have any Idea??


On Wed, Jun 4, 2008 at 2:35 AM, Eric Covener [EMAIL PROTECTED] wrote:

 On Mon, Jun 2, 2008 at 1:13 PM, karim Bendadda [EMAIL PROTECTED] wrote:
  Hi all,
 
   I need some help on an httpd configuration:
 
   I'm trying to develop a custom cookie based module (*mod_loginCookie*).
 The
  module will check an encrypted cookie using Apache as a *reverse
  proxy*(using openssl decrypting libraries...);
 ...
  LocationMatch /auth/*)
  SetHandler  loginCookie
  /LocationMatch 

 In 2.0 and higher, this probably matches more then you intended.
 LocationMatch takes a regular expression, so this is interpreted as a
 string with /auth followed by 0 or more slashes, anywhere in the URL.

 Have you tried Proxy containers?  What hook does your module operate in?

 --
 Eric Covener
 [EMAIL PROTECTED]




-- 
Karim


Re: Requests on a custom module (LocationMatch)??

2008-06-03 Thread Eric Covener
On Mon, Jun 2, 2008 at 1:13 PM, karim Bendadda [EMAIL PROTECTED] wrote:
 Hi all,

  I need some help on an httpd configuration:

  I'm trying to develop a custom cookie based module (*mod_loginCookie*). The
 module will check an encrypted cookie using Apache as a *reverse
 proxy*(using openssl decrypting libraries...);
...
 LocationMatch /auth/*)
 SetHandler  loginCookie
 /LocationMatch 

In 2.0 and higher, this probably matches more then you intended.
LocationMatch takes a regular expression, so this is interpreted as a
string with /auth followed by 0 or more slashes, anywhere in the URL.

Have you tried Proxy containers?  What hook does your module operate in?

-- 
Eric Covener
[EMAIL PROTECTED]