httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Hracek <>
Subject [users@httpd] Authentication of proxy over own module
Date Thu, 10 Jun 2010 08:32:07 GMT
Hello apache users,

I would like to explain my problem.
I have developed the module which is used for authorization to web pages.
It works fine without problem but I would like to use that module for
of "proxy" requests as well.
Proxy requests are not defined in settings of browser (in Firefox
Tools->Options->LAN settings -> Manual configuration of proxy).

In apache conf. file I have following:

<VirtualHost _default_:443>

SSLEngine on
SSLProxyEngine on

RewriteEngine on
RewriteRule .* - [F]
RewriteMap foo txt:/opt/apache/conf/
RewriteRule ^/PAC$ [P]
RewriteRule ^/PAC/(.*)$1 [P]
RewriteRule ^/([^/]+)$     ${foo:$1|/$1} [L]
RewriteRule ^/([^/]+)/(.*)     ${foo:$1|/opt/apache/htdocs/ssldocs/$1}/$2

<IfModule mod_authz_host.c>
   <Directory />
      Options +Indexes +Multiviews
      AuthType FOOM
      require   valid-user
      satisfy Any

<Location "/PAC/">
   ProxyPassReverseCookie   /PACAdmin   /PAC
   Order Allow,deny
   Allow from all

How I can used own module for authorization location /PAC/?
When user will enter URL
then firstly my own module will authorized that page and afterwards location
/PAC will be shown.
Is it possible to do it somehow?

Thanks for your help.
Best Regards / S pozdravem
Petr Hracek

View raw message