httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch ...@sfritsch.de>
Subject Re: How to "call" one module from the another module
Date Wed, 27 Jul 2011 13:35:31 GMT
On Wednesday 27 July 2011, Petr Hracek wrote:
> Dear users,
> 
> I have one simple question.
> Is there any possibility how to "call" module from the another
> module?
> 
> Let's say that my module is used for checking whether user is
> logged, session is expired, etc.
> When all those tests are satisfied then URL which was checked by my
> module is redirect to another module e.g proxy?
> 
> https://<IP_address>/APPL1 should be authenticated by my own
> proprietary module and when this is successed then it is redirect
> to proxy defined in /etc/apache/conf/my_conf.conf file
> 
> <VirtualHost _default_:443>
> SSLEngine on
> SSLProxyEngine on
> ProxyRequests Off
> TraceEnable Off
> 
> <Proxy *>
>     AuthType SEC_CHECK
>     require valid-user
>     satisfy Any
> </Proxy>
> </VirtualHost>
> 
> ProxyPass /APPL1 http://192.0.2.20:8080/APPLONE
> ProxyPassReverse /APPL1 http://192.0.2.20:8080/APPLONE
> 
> AuthType in my module SEC_CHECK is defined so:
> #defined SECURITY_AUTH_CHECK "SEC_CHECK"
> r->ap_auth_type = SECURITY_AUTH_CHECK
> Is this "behaviour" possible?

mod_proxy should handle the request with you having to do anything in 
your module. Have you tried replacing your auth module with basic auth 
and checked if that works? If no, there is likely some other problem 
in your config.

Mime
View raw message