httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Hracek <phrac...@gmail.com>
Subject Re: [users@httpd] Authentication proxy over proprietary module
Date Fri, 18 Jun 2010 12:13:42 GMT
satisfy any was deleted and with slash is also not working.
The same error 404.

in the Virtual Host section I have RewriteRule section as well and at
the and is mentioned:
RewriteRule ^/([^/]+)$              ${unity:$1|/$1} [L]
RewriteRule ^/([^/]+)/(.*)  ${unity:$1|/opt/apache/htdocs/ssldocs/$1}/$2 [L]

which is used for my proprietary module.
In the handler in that module is not any redirecting to the proxy and
when the authentication/authorization is done succesfully then each
functon return is OK.

Functions in module are:
    ap_hook_post_config(udsc_init_Module,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_auth_checker(udsc_access_handler,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_check_user_id(udsc_auth_handler,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_handler(udsc_notification_handler,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_fixups(udsc_fixups,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_child_init(udsc_init_Child,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_handler(udsc_secmcj_handler,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_handler(udsc_login_handler,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_handler(udsc_single_login_handler,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_handler(udsc_logout_handler,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_handler(udsc_wsm_handler,NULL,NULL,APR_HOOK_MIDDLE);
    ap_hook_handler(udsc_mulsess_tab_handler,NULL,NULL,APR_HOOK_MIDDLE);

There is not anything about Proxy.
Could there be a problem that handlers like post_read_request are not
mentioned for handling Proxy Request?

Best regards
Petr

2010/6/18, Eric Covener <covener@gmail.com>:
> On Fri, Jun 18, 2010 at 7:32 AM, Petr Hracek <phracek2@gmail.com> wrote:
>> Hello *,
>>
>> I have tried to find out any solution how to authenticate/authorized
>> access
>> to the proxy but I did not found any
>> good answer to my question.
>>
>> Let's say that I have my own module which is take care about
>> authentication
>> to the SSL web pages.
>> Unfortunatelly I would like to authenticate proxy which is used on
>> http://127.0.0.1:8000/
>> I am using following in the apache configuration file.
>> This section is not written in <VirtualHost _default_:443>
>> but in HTTP section.
>>
>> <IfModule mod_proxy.c>
>>         ProxyRequests Off
>>         ProxyVia On
>>         ProxyPass       /term/  http://127.0.0.1:8000/
>>         ProxyPass       /term/$ http://127.0.0.1:8000/
>>         ProxyPass       /term/u$        http://127.0.0.1:8000/u
>>         ProxyPass       /term/(.*)
>> http://127.0.0.1/public/ajaxterm/$1
>>         ProxyPassReverse  /term/  http://127.0.0.1:8000/
>>         ProxyPassReverse  /term/  http://localhost:8000/
>>         <Proxy *>
>>                 Order deny,allow
>>                 Allow from all
>>                 AuthType SEC
>>                 AuthName "Password Required"
>>                 require valid-user
>>                 satisfy Any
>>         </Proxy>
>> </IfModule>
>>
>> Unfortunatelly when I write down to the URL of browser
>> https://<IP_Address>/term than after authentication I have received
>> HTTP Error 404 HTTP Not Found (Not Found).
>>
>> What I have mistake in httpd.conf file?
>
> satisfy any means only the host-based access control was required, so
> no other auth ran.
>
> your proxy rules only proxy URL's with a trailing slash after "/term",
> so you got a 404.
>
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
Best Regards / S pozdravem
Petr Hracek

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message