httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Hracek <phrac...@gmail.com>
Subject My own module and catching Proxy Request
Date Thu, 22 Apr 2010 10:20:54 GMT
Hello *,

I hope that I am sending those question to the correct discussion list.

In my Apache2 (2.2.3) configuration file I have:
<VirtualHost _default_:443>
SSLEngine on
DocumentRoot "/opt/apache/htdocs/ssldocs"
ProxyPass       /PAC/   http://192.168.187.101:8080/PACCBAdmin
ProxyPassReverse    /PAC/       http://192.168.187.150:8080/PACCBAdmin/
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteMap unity txt:/opt/apache/conf/unity.map
RewriteRule ^/([^/]+)$              ${unity:$1|/$1} [L]
RewriteRule ^/([^/]+)/(.*)  ${unity:$1|/opt/apache/htdocs/ssldocs/$1}/$2 [L]
RewriteLog "/var/log/apache2/rewrite_log"
RewriteLogLevel 3

<Location "/PAC/">
    ProxyPassReverseCookiePath /PACCBAdmin /PAC
    Order Allow,Deny
    Allow from all
</Location>

</VirtualHost>

In the my modules which takes care about AAA, Security issues, etc.
I would like to catch in my module when URL contains /PAC/ (which means that
this is proxy) than it tell to module that this request is not a bussiness
for them.
Is it possible to do that somehow?
I have found that r->proxyreq contains if the Request is Proxy or not.

Thank you in advance
-- 
Best Regards / S pozdravem
Petr Hracek

Mime
View raw message