Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 92A68200CC6 for ; Tue, 18 Jul 2017 20:42:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 910AE166C38; Tue, 18 Jul 2017 18:42:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D24CA166C31 for ; Tue, 18 Jul 2017 20:42:51 +0200 (CEST) Received: (qmail 7360 invoked by uid 500); 18 Jul 2017 18:42:50 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 7349 invoked by uid 99); 18 Jul 2017 18:42:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2017 18:42:50 +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 1E7B3C22BB for ; Tue, 18 Jul 2017 18:42:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.398 X-Spam-Level: X-Spam-Status: No, score=0.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=evermeet.cx Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id wcLfKIZKwFXI for ; Tue, 18 Jul 2017 18:42:45 +0000 (UTC) Received: from atvie01s.evermeet.cx (evermeet.cx [77.244.245.66]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4B9545F613 for ; Tue, 18 Jul 2017 18:42:45 +0000 (UTC) Received: from [192.168.66.191] (66-207-203-114.beanfield.net [66.207.203.114] (may be forged)) (authenticated bits=0) by atvie01s.evermeet.cx (8.15.2/8.15.2) with ESMTPSA id v6IIghPW009008 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 18 Jul 2017 20:42:44 +0200 DKIM-Filter: OpenDKIM Filter v2.10.3 atvie01s.evermeet.cx v6IIghPW009008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evermeet.cx; s=default; t=1500403364; bh=njJNY1ixXrSZaHHnuYG2DlSuEqod1wZD5nrWU1/X2vg=; h=Subject:To:References:From:Date:In-Reply-To:From; b=ArAPJxa+gDs0HOjzt9CsznHgYd0RGz7/6Qz/GV0YKkkEsD8ZcKzcbVXsoNRZwTc8m txQwjDA5xRLRdva8D5ZO+b67L9+kUC2x9jBysmdumHnzl6EcJmap1TRakXKgU7CWhF R2Wyrm9QXxEtAeP1JyJaQJElKdM6TKYtQybFa4e8= Subject: Re: 2.4.27 To: dev@httpd.apache.org References: <19CA5E06-B22D-4A0C-B44F-1017CF1CF6E9@jaguNET.com> <20170703173945.cfeauklb6nslkte7@leander> <6CBBC45A-CD87-4528-96B7-973093EC7B06@riggs.me> <11c428b3-7a18-d4ef-0236-324c3dfbab97@evermeet.cx> From: "Helmut K. C. Tessarek" Message-ID: Date: Tue, 18 Jul 2017 14:43:20 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit archived-at: Tue, 18 Jul 2017 18:42:52 -0000 On 2017-07-18 14:25, Eric Covener wrote: > Argh, not right, missed the other return stmt. > > It seems like proxy_trans will return OK to translate_name() and not > let mod_rewrite in non-perdir run at all. It is rigged to run before > mod_rewrite. Ok, it seems that my rewrite issue has gained a bit of attention, thus I will explain it now in more detail (otherwise people don't know what I am actually talking about): Options FollowSymLinks AllowOverride None ErrorDocument 404 /404.php RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L] Require all granted With mod_php I got the 404.php error page when going to: https://example.com/te With mod_proxy_fcgi I get a "File not found." error in the browser and the following is in Apache's error_log: [proxy_fcgi:error] AH01071: Got error 'Primary script unknown\n' However, I get the 404.php error page, when going to: https://example.com/te.t https://example.com/te/ (So it works partly with proxy_fcgi.) I'm still investigating why that is. I'm a bit pressed for time that's why I haven't been able to look into it in more detail. I have to setup a VM to debug this further, but IMO this is not ok. In both cases the rewrite should work the same way. My handler cfg looks like this: SetHandler "proxy:unix:/var/run/php7-fpm/sample.sock|fcgi://sample" A rather simple use case, yet the bahaviour is different. Don't get me wrong, but it shouldn't behave differently. -- regards Helmut K. C. Tessarek KeyID 0xF7832007C11F128D Key fingerprint = 28A3 1666 4FE8 D72C CFD5 8B23 F783 2007 C11F 128D /* Thou shalt not follow the NULL pointer for chaos and madness await thee at its end. */