[users@httpd] Using mod_security to Parse XML File

2016-10-15 Thread Amlaan Kar
I have created a handler in Apache which is supposed to parse the URL entered. If the conditions defined by the handler are satisfied, the handler returns DECLINED AND the page requested is open. If not, the handler displays "Rejected". However, the problem I am facing is that when I am trying to d

Re: [users@httpd] Use an Apache handler after declining another

2016-07-19 Thread Amlaan Kar
What the example5-handler does is that it parses the url entered and if the url does not satisfy the given conditions, displays a message. However, if the conditions are satisfied by the url entered the example5-handler returns DECLINED. This is where the example1-handler is called and executed.

Re: [users@httpd] Use an Apache handler after declining another

2016-07-19 Thread Amlaan Kar
heir configuration directives are as given below: SetHandler example1-handler SetHandler example5-handler On Tue, Jul 19, 2016 at 6:01 PM, Yann Ylavic wrote: > On Tue, Jul 19, 2016 at 2:15 PM, Amlaan Kar wrote: > > static void register_hooks(apr_pool_t *pool)

Re: [users@httpd] Use an Apache handler after declining another

2016-07-19 Thread Amlaan Kar
, NULL, register_hooks}; Sorry, I can't share the remaining code. I hope you can help me with this. Thank you in advance On Tue, Jul 19, 2016 at 5:37 PM, Yann Ylavic wrote: > On Tue, Jul 19, 2016 at 1:58 PM, Amlaan Kar wrote: > > Thank You for answering. The method descri

Re: [users@httpd] Use an Apache handler after declining another

2016-07-19 Thread Amlaan Kar
The first handler runs properly. However, the successor does not run. The module I am using has been written by me and is not a built-in one. Is there any separate method for httpd built-in handlers? On Tue, Jul 19, 2016 at 5:37 PM, Yann Ylavic wrote: > On Tue, Jul 19, 2016 at 1:58 PM, Aml

Re: [users@httpd] Use an Apache handler after declining another

2016-07-19 Thread Amlaan Kar
Thank You for answering. The method described above is not working. Do I have to make any changes before using the above given code? PS: Both the handlers work properly individually On Tue, Jul 19, 2016 at 4:44 PM, Yann Ylavic wrote: > On Tue, Jul 19, 2016 at 12:29 PM, Amlaan Kar wrote: &g

[users@httpd] Use an Apache handler after declining another

2016-07-19 Thread Amlaan Kar
I have two handlers to be accessed. My motive is to use the second handler if the first handler returns DECLINED. I have tried various combinations of SetHandler, AddHandler and AddType but none has worked as overriding takes place in all of these combinations. Is there any method in Apache to us

Re: [users@httpd] Run PHP Handler after running my handler Apache

2016-07-19 Thread Amlaan Kar
ms to be the only way to make it work. On Tue, Jul 19, 2016 at 11:44 AM, Nick Kew wrote: > On Tue, 2016-07-19 at 10:45 +0530, Amlaan Kar wrote: > > I have created a handler in Apache > > Sounds like your module's processing should be hooked up > earlier in the cycle.

Re: [users@httpd] Run PHP Handler after running my handler Apache

2016-07-19 Thread Amlaan Kar
9, 2016 at 11:44 AM, Nick Kew wrote: > On Tue, 2016-07-19 at 10:45 +0530, Amlaan Kar wrote: > > I have created a handler in Apache > > Sounds like your module's processing should be hooked up > earlier in the cycle. It can then set the handler either > to PHP or to its

[users@httpd] Run PHP Handler after running my handler Apache

2016-07-18 Thread Amlaan Kar
I have created a handler in Apache which is supposed to parse the URL entered. If the conditions defined by the handler are satisfied, the handler returns DECLINED AND the page requested is open. If not, the handler displays "Rejected". However, the problem I am facing is that when I am trying to d