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 AE92617BE7 for ; Fri, 10 Jul 2015 12:48:51 +0000 (UTC) Received: (qmail 83337 invoked by uid 500); 10 Jul 2015 12:48:51 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 83290 invoked by uid 500); 10 Jul 2015 12:48:51 -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 83278 invoked by uid 99); 10 Jul 2015 12:48:51 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 12:48:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B4975C0052 for ; Fri, 10 Jul 2015 12:48:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.417 X-Spam-Level: *** X-Spam-Status: No, score=3.417 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HK_RANDOM_ENVFROM=0.626, HK_RANDOM_FROM=0.999, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-1.108, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id GQzHwepGDaLe for ; Fri, 10 Jul 2015 12:48:40 +0000 (UTC) Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 7856B20E40 for ; Fri, 10 Jul 2015 12:48:40 +0000 (UTC) Received: by igpy18 with SMTP id y18so12017535igp.0 for ; Fri, 10 Jul 2015 05:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=7NBRZ0tQq008RA+SBbmRF2lOd4mCZjBCAqd062IjnDM=; b=C1Z/vsjlERUipHDrhi+PW0d+vOycvUigTJSNirvylqyU+4B4IVTOGwW5wohSPrjOyx k1EuwepJinQe4aV2d9bnH1v7By5mvMOa6AxcKtzvK2K1WS+7LwTnXC3EKZKx31X/mFcx kItSiF3+klry4m8XGByeuynoSjScnxvlOchvWBz9ulQz24h7wt33b/sWF91l5iLhTik7 mfoH/p/gC+8O4s2KIA0zLepz6X9ub03Egrxl9bMhdHJ4PM2Tg7bDx2s7LiRzCVMB5lYG BuYlaRwPqGAOk0lZFqPcDMEEFBO+TY+Me/X5YZe5q5yvf1TofTvcrQ+kCW/n6uLJQCNt ROKw== MIME-Version: 1.0 X-Received: by 10.50.57.39 with SMTP id f7mr3125196igq.35.1436532519929; Fri, 10 Jul 2015 05:48:39 -0700 (PDT) Received: by 10.50.23.108 with HTTP; Fri, 10 Jul 2015 05:48:39 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 Jul 2015 07:48:39 -0500 Message-ID: Subject: Re: The requested URL /as was not found on this server. From: Mark Taylor To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=e89a8f8395138f2ee9051a84cafc --e89a8f8395138f2ee9051a84cafc Content-Type: text/plain; charset=UTF-8 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 ? > --e89a8f8395138f2ee9051a84cafc--