Re: TTLimit directive

2017-06-22 Thread Donatas Abraitis
Hey Nick, anything else is missing from me regarding this patch? On Tue, Jun 13, 2017 at 2:20 PM, Donatas Abraitis < donatas.abrai...@gmail.com> wrote: > Hey Nick, > > it must be 0, not 255. I updated it in patch attached  > > Sent from my iPhone > > > On 13 J

Re: TTLimit directive

2017-06-13 Thread Donatas Abraitis
Hey Nick, it must be 0, not 255. I updated it in patch attached  Sent from my iPhone > On 13 Jun 2017, at 13:52, Nick Kew <n...@apache.org> wrote: > >> On Tue, 2017-06-13 at 11:41 +0300, Donatas Abraitis wrote: >> >> I would like to propose this patchset all

TTLimit directive

2017-06-13 Thread Donatas Abraitis
Hi, I would like to propose this patchset allowing to set maximum TTL value for incoming requests. This is not a usual use case, but I'm interested (maybe others too) to have this in place. The real use case would be like this one http://blog.donatas.net/blog/2017/04/20/http-request-validation/.

Re: HTTP_FORBIDDEN and sub-requests

2017-04-15 Thread Donatas Abraitis
By the way, how it can happen, that r->hostname is (null)? On Fri, Apr 14, 2017 at 5:24 PM, Donatas Abraitis < donatas.abrai...@gmail.com> wrote: > What would be the best way to iterate over sub-requests? For instance: > > while (r->prev) { > ... > r = r-&g

HTTP_FORBIDDEN and sub-requests

2017-04-14 Thread Donatas Abraitis
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

sequence of request

2014-07-23 Thread Donatas Abraitis
Hello guys, is it possible to know the sequence of request is handled? I mean which module takes precedence? Because I need to debug why r-filename becomes not so as I expected. Thank you! -- Donatas

apache sql module with suexec

2013-11-06 Thread Donatas Abraitis
Hello, I'm trying to write a module which would work with httpd.worker. It will per-request fetch row from mysql returning documentroot, servername, user, group. How can I setuid(), setgid()? I have fetched these user/group from DB using mod_dbd module and now want to set using suEXEC these