httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donatas Abraitis <donatas.abrai...@gmail.com>
Subject Re: HTTP_FORBIDDEN and sub-requests
Date Fri, 14 Apr 2017 14:24:07 GMT
What would be the best way to iterate over sub-requests? For instance:

while (r->prev) {
    ...
    r = r->prev;
}

On Fri, Apr 14, 2017 at 1:41 PM, Donatas Abraitis <
donatas.abraitis@gmail.com> wrote:

> What do you mean by `you just leave a "been here" breadcrumb.`?
>
> On Fri, Apr 14, 2017 at 1:31 PM, Nick Kew <niq@apache.org> wrote:
>
>> On Fri, 2017-04-14 at 12:55 +0300, Donatas Abraitis wrote:
>> > Hi folks!
>> >
>> > I have a such code snippet:
>> >
>> > char *proxy_ts = (char *) apr_table_get(r->headers_in,
>> conf->deny_header);
>> > if (!proxy_ts)
>> > return HTTP_FORBIDDEN;
>> > apr_table_unset(r->headers_in, conf->deny_header);
>> >
>> > This unsets the arbitrary header properly in application (phpinfo()),
>> but
>> > if the site is non-single page (with many images, css, js, etc.) it
>> always
>> > returns 403. It looks like there is some kind of sub-requests for those
>> > resources.
>> >
>> > How do you solve such cases with requests?
>>
>> Well, I should start by figuring out where and why that's happening.
>> On the server side, gdb works as fallback tool for that if you have
>> no better ideas.
>>
>> If, once you've figured out, you're happy that it's not a symptom
>> of some deeper bug, you just leave a "been here" breadcrumb.
>>
>> --
>> Nick Kew
>>
>>
>
>
> --
> Donatas
>



-- 
Donatas

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message