Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9566218D73 for ; Sat, 11 Jul 2015 08:45:36 +0000 (UTC) Received: (qmail 3481 invoked by uid 500); 11 Jul 2015 08:45:36 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 3428 invoked by uid 500); 11 Jul 2015 08:45:36 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 3416 invoked by uid 99); 11 Jul 2015 08:45:35 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2015 08:45:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 038C81A6D1F for ; Sat, 11 Jul 2015 08:45:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ootdTqD7wYeI for ; Sat, 11 Jul 2015 08:45:24 +0000 (UTC) Received: from mail-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id B6D2920FD3 for ; Sat, 11 Jul 2015 08:45:23 +0000 (UTC) Received: by igcqs7 with SMTP id qs7so27770447igc.0 for ; Sat, 11 Jul 2015 01:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ch5ZooZAdFB2X31+BwMGc+B5uFwMzSs6uwtBGJerq7Q=; b=G3L9HMEFGFYCClGEgKUYyhrhV0pLr+dEtfQ8QokNMpu8m1+S1Q+il7XGZCvVJd+iOD Bbw/YxiLUTnL69OeZtQAFlplqstDvPPuyHnmUo6MQAjaz6BWyA9i07weVoQ5J6W5V1A5 h4WpYFbBmwqM2sfAxlTRNrBQ7M09NW7NXS9NxHz98jskUs0t/AjRl2uyzpqI+iQPhikb +Z85fdbP5vBDX0aiL6kTzi64IhfOVzuRYVr89EQGMNttKkTeu4UO8fTz1904CBloTrDy GnxGZIQDJ4fxrbALPa4UGQ15jdn6syvmS+q+oJE1IqEZK0L9cGKFtelvQTb0GWlwZV13 rcng== X-Received: by 10.50.111.167 with SMTP id ij7mr2835433igb.49.1436604323053; Sat, 11 Jul 2015 01:45:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.58.85 with HTTP; Sat, 11 Jul 2015 01:45:03 -0700 (PDT) In-Reply-To: References: From: Prakash Premkumar Date: Sat, 11 Jul 2015 14:15:03 +0530 Message-ID: Subject: Re: The requested URL /as was not found on this server. To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=047d7b4144785bc8c0051a95821f --047d7b4144785bc8c0051a95821f Content-Type: text/plain; charset=UTF-8 Thanks a ton Mark. It worked :) On Fri, Jul 10, 2015 at 6:18 PM, Mark Taylor 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 > > 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 ? > > > --047d7b4144785bc8c0051a95821f--