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 13:36:35 GMT
Hello,

when I move ProxyPass to RewriteRule so that now it looks like following:
RewriteRule ^/term/$ http://127.0.0.1:8000/ [P]
RewriteRule ^/term/u$ http://127.0.0.1:8000/u [P]
RewriteRule ^/term/(.*) http://127.0.0.1/public/ajaxterm/$1 [P]
RewriteRule ^/([^/]+)$              ${unity:$1|/$1} [L]
RewriteRule ^/([^/]+)/(.*)  ${unity:$1|/opt/apache/htdocs/ssldocs/$1}/$2 [L]

Then page is shown but unfortunatelly without and
authentication/authorization screen.

May be I misunderstand your answer.
> Tough to guess why it didn't get proxied without looking at verbatim
> doc. If it doesn't get proxied, it won't match your <Proxy *>.
What do you mean with verbatim doc? Could you please send me reference?

Thank you in advance
Best regards
Petr
2010/6/18 Eric Covener <covener@gmail.com>:
> On Fri, Jun 18, 2010 at 8:13 AM, Petr Hracek <phracek2@gmail.com> wrote:
>> satisfy any was deleted and with slash is also not working.
>> The same error 404.
>
> Tough to guess why it didn't get proxied without looking at verbatim
> doc. If it doesn't get proxied, it won't match your <Proxy *>.
>
>>
>> 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.
>
> Can't such a rewrite short-circuit ProxyPass?  Try moving your
> Proxypass directives to rewrite so you can make sense of  / control
> the relationship.
>
>> Could there be a problem that handlers like post_read_request are not
>> mentioned for handling Proxy Request?
>>
>
> No.  But you could simply add a logging call to your module to debunk
> such a thing.
> --
> 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