Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90A7D18737 for ; Wed, 18 Nov 2015 15:05:03 +0000 (UTC) Received: (qmail 2445 invoked by uid 500); 18 Nov 2015 15:04:57 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 2406 invoked by uid 500); 18 Nov 2015 15:04:57 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 2395 invoked by uid 99); 18 Nov 2015 15:04:57 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2015 15:04:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 17C32C721C for ; Wed, 18 Nov 2015 15:04:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.901 X-Spam-Level: ** X-Spam-Status: No, score=2.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id TTLxiHRwvI7t for ; Wed, 18 Nov 2015 15:04:51 +0000 (UTC) Received: from mail-yk0-f177.google.com (mail-yk0-f177.google.com [209.85.160.177]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 20A772026D for ; Wed, 18 Nov 2015 15:04:51 +0000 (UTC) Received: by ykdr82 with SMTP id r82so67508116ykd.3 for ; Wed, 18 Nov 2015 07:04:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=4kJB3sCN/Ur2gA/nYibkaBve5c7t2/bcQ/jJGzohIKA=; b=EQszoDjhZZe78LZ829cdWbJGoHBn7HmIMGrQQGM2AizqD9r8vFPl4Fyd2qhEEqXxex WMMZbqtEnyUznu9egUfJr0W8JTxoTV8At//whMUv1ahyUkrJ0RtfEjX1mFhnvUkfXG3r JUuzMNDI5CZmt8RF1p6bJV76mt2cGVijDx+HZKMcoCumrgrWMnykj2MNQE2Zh+BMlvTA cNqFjuDNByykEaqRwdnHEItMb6qlTMTIf2oCEAcyEoqDm/awi4CB+Rk9QBN0rUooZqtK cOBqAnxJNIIUc8eFDWipgV36IObgtM3f+Uw3TCFPP2Mu0c06Hv9BeOYdJZ+DJDrx2URy kbag== MIME-Version: 1.0 X-Received: by 10.129.135.7 with SMTP id x7mr2172441ywf.95.1447859083703; Wed, 18 Nov 2015 07:04:43 -0800 (PST) Received: by 10.31.172.201 with HTTP; Wed, 18 Nov 2015 07:04:43 -0800 (PST) Date: Wed, 18 Nov 2015 20:34:43 +0530 Message-ID: From: Amol Kulkarni To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=001a114f10065e9d680524d1f6df Subject: [users@httpd] 404 error - Restful webservice incorrectly considered as perl file --001a114f10065e9d680524d1f6df Content-Type: text/plain; charset=UTF-8 Hello, I have a setup of Apache httpd + mod_jk + Tomcat 6.0 + Jersey on Centos 6. The setup works correctly under normal circumstances. The webservice urls r of format : http:// /application/domain//user/?properties= However, if the field, i.e the user id has a value ending with .pl then I get a 404 error. Eg. http://192.168.0.17/application/domain/test.dom/user/amol.pl?properties=firstname In httpd error_log, I get foll error : File does not exist: amol.pl I executed the webservice directly on tomcat by doing http://192.168.0.17:8080/application/domain/test.dom/user/amol.pl?properties=firstname. It worked correctly. I'm not an expert in apache httpd configuration, so I tried some random tricks with help from google, but could not get it working. Foll things did not work : - Remove the "application/x-perl pl" line from /etc/mime.types file. - Change ExecCGI to -ExecCGI. - Remove the perl.conf file from /etc/httpd/conf.d - Add explicit line JkMount /application/*.pl ajp13 Please help me in understanding and solving the problem. Thanks in advance. Amol. --001a114f10065e9d680524d1f6df Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I have a= setup of Apache httpd + mod_jk + Tomcat 6.0 + Jersey on Centos 6.
The setup works correctly under normal circumstances.
The webserv= ice urls r of format :

http://<ip-addr>/application/domain/<= ;domain-name>/user/<user-id>?properties=3D<propertyname>
=
However, if the <user-id> field, i.e the user id has a valu= e ending with .pl then I get a 404 error.

Eg.
http://192.168.0.17/application/domain/test.dom/user/amol.pl?proper= ties=3Dfirstname

In httpd error_log, I get foll error : File does not exist: amol.pl
=
I executed the webservice directly on tomcat by doing http://192.168.0.17:8080/application/domain/test.dom/us= er/amol.pl?properties=3Dfirstname. It worked correctly.

I'm not an expert in apache httpd configuration, so I tried some ran= dom tricks with help from google, but could not get it working.
Foll things did not work :
  • Remove the "applic= ation/x-perl=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0 pl" line from /etc/mime.types file.
  • Change ExecCG= I to -ExecCGI.
  • Remove the perl.conf file from /etc/httpd/conf.d
  • Add explicit line JkMount /application/*.pl ajp13
<= div>
Please help me in understanding and solving the problem.=

Thanks in advance.
Amol.
--001a114f10065e9d680524d1f6df--