Thanks a ton Mark. It worked :) On Fri, Jul 10, 2015 at 6:18 PM, Mark Taylor <mtt...@gmail.com> wrote:
> I believe the issue is here: > > SetHandler example_module > > It may be the case that the string in request_rec.handler is set to the > value from SetHandler in the conf. > > if (!r->handler || strcmp(r->handler, "example-handler")) return > (DECLINED); > > You might try: > > SetHandler example-handler > > Seems like the name from LoadModule is the symbol name in the .so, and used > to reference the module, not any code within the module. > > -Mark > > > On Fri, Jul 10, 2015 at 1:20 AM, Prakash Premkumar <prakash.p...@gmail.com > > > wrote: > > > Hi, I am writing a simple apache module following the docs in > > https://httpd.apache.org/docs/2.4/developer/modguide.html#snippets > > > > Here's the module code: > > http://pastebin.com/T1TMfLgC > > > > Here's my httpd.conf file: > > http://pastebin.com/aZBWyNve > > > > When I access any URL like localhost/asd > > > > I get the following error > > > > Not Found > > > The requested URL /asd was not found on this server. > > > > > > Can you please help me fix this ? > > >