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 DC46C11A3C for ; Wed, 17 Sep 2014 16:53:28 +0000 (UTC) Received: (qmail 48721 invoked by uid 500); 17 Sep 2014 16:53:25 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 48684 invoked by uid 500); 17 Sep 2014 16:53:25 -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 48674 invoked by uid 99); 17 Sep 2014 16:53:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 16:53:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.41] (HELO mail-qa0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 16:53:00 +0000 Received: by mail-qa0-f41.google.com with SMTP id f12so2213524qad.0 for ; Wed, 17 Sep 2014 09:52:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=hiidOt3+WCDxejbXphjr4yiN/48kUbS5PHjEnf0HMJ0=; b=IDsFh8RrIKKPFGn91+pYcBvhsn3Wm1PhiiRl3eC4x38zLeX3m9oZfvs8tqSgPczMiX tF/7AZBzX3of4zYCLI9C0w4oD3gfQlAKWFFqI8u/PD8ZrlauZARAPj0TcowyceW5yfVa ZHIOiZJzUrRawZw40/3fWN1AFzYvARvIyik9Hcagf0okW0jem/VrWo0IeJtdy24b4hzG C3ax4peU1kVdIzb1P6BKh5yuT1q0KhZAUdHN7R4WWId7Z9+siPwoVt4yra5X14xCikOg xGEGBed4fhIls7QPBeYDaC+6DsbaKuqLbEy2pMsjC52OAa4NndHjaVouU4oJxoBa7USz UI/g== X-Gm-Message-State: ALoCoQnxvPQ244TurbGupWVgSSo+r6uBUoSOpOtbBe8I1IiJxaiQu1PVuhnCjBHaj7UFhn6w77BJ X-Received: by 10.229.121.7 with SMTP id f7mr31565580qcr.28.1410972778581; Wed, 17 Sep 2014 09:52:58 -0700 (PDT) Received: from localhost.localdomain (cpe-74-138-17-157.swo.res.rr.com. [74.138.17.157]) by mx.google.com with ESMTPSA id 89sm14519778qgj.49.2014.09.17.09.52.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Sep 2014 09:52:57 -0700 (PDT) Message-ID: <5419BC66.3030103@rcbowen.com> Date: Wed, 17 Sep 2014 12:52:54 -0400 From: Rich Bowen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: users@httpd.apache.org References: <54188662.9080502@tribloom.com> In-Reply-To: <54188662.9080502@tribloom.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] (36)File name too long On 09/16/2014 02:50 PM, mmccarthy@tribloom.com wrote: > I am using RewriteRule and the proxy flag to proxy through Apache. > When a long URL is passed through (longer than 255 characters), I get > the error below (redacted). I understand that this is related to the > maximum file name on the OS, in this case Ubuntu 14.04. My question is > why is this happening when the URL is not related to a file on the > file system? The URL is rewritten, then proxied to another server that > works fine with long URLs. > > [Mon Sep 15 11:42:04.211290 2014] [core:error] [pid 18302:tid > 140171735451392] (36)File name too long: [client xxx.xx.x.xxx:53717] > AH00036: access to //_aliases failed (filesystem path > '/), referer: http://xx.xx.xx.xxx/index.html > > Thanks, That error message doesn't appear to be from the httpd server itself (ie, that message doesn't appear anywhere in the source code for trunk, 2.4, 2.2, or 2.0), which leads me to believe that 1) it's in fact from your filesystem, and 2) there's no direct way to fix that in httpd configuration. As thy why it matters when the file isn't on the filesystem, that's hard to tell without more context, but I presume that at some point in the process it is *looking* for the file in the filesystem. For example, if this RewriteRule is in a .htaccess file, rather than in the main server config, it did in fact have to navigate to a filesystem directory before consulting that .htaccess file. -- Rich Bowen - rbowen@rcbowen.com - @rbowen http://apachecon.com/ - @apachecon --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org