httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prakash Premkumar <prakash.p...@gmail.com>
Subject Re: The requested URL /as was not found on this server.
Date Sat, 11 Jul 2015 08:45:03 GMT
Thanks  a ton Mark. It worked :)

On Fri, Jul 10, 2015 at 6:18 PM, Mark Taylor <mttdgf@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.prax@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 ?
> >
>

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