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 9C6251874E for ; Wed, 23 Dec 2015 16:06:34 +0000 (UTC) Received: (qmail 67742 invoked by uid 500); 23 Dec 2015 16:06:30 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 67705 invoked by uid 500); 23 Dec 2015 16:06:30 -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 67694 invoked by uid 99); 23 Dec 2015 16:06:30 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Dec 2015 16:06:30 +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 275871A048C for ; Wed, 23 Dec 2015 16:06:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=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-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id WjBdo3KeZ8tt for ; Wed, 23 Dec 2015 16:06:29 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id A8774429C1 for ; Wed, 23 Dec 2015 16:06:28 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id l133so148918467lfd.2 for ; Wed, 23 Dec 2015 08:06:28 -0800 (PST) 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=QGNZpVN0vzYyrROOBtR7CZfaKN5MJOHKFlFehKP5Ruw=; b=e7OrMyCn/3chgXrek4kyTqruFwcjtgiHy0igpcgvEslDfXh9Yj2m8bo7Ih5AI5cTTs 42L7r0+eeWeH6f9Mpg6/Q0KtOaSlE0Xhju4xDYFLNvZ18kql+a6dkyWCK+xryc70/260 ZKEOUWcla5T+Bl9vyOMgrUVvViSY7H7X9V+fih53k5ucUXLAJmaPXDkjnQlo5LV+ZO9U 1GSwf74DO63h7Bs2b1plbv++zrrbdZUpQPnH53Xug78gGvrhORQSzFfciN0Q/PEdTqvd 2MaX498PRf0lYwcknUCYPQI78GG2BkM7IETmksBNJtntBYiZTVZond2GQsg7Yal38LcY 9gmA== MIME-Version: 1.0 X-Received: by 10.25.206.203 with SMTP id e194mr8519486lfg.166.1450886787509; Wed, 23 Dec 2015 08:06:27 -0800 (PST) Received: by 10.25.210.146 with HTTP; Wed, 23 Dec 2015 08:06:27 -0800 (PST) In-Reply-To: <567A52C1.3010107@free.fr> References: <567A52C1.3010107@free.fr> Date: Wed, 23 Dec 2015 17:06:27 +0100 Message-ID: From: Luca Toscano To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=001a1141257e943afd052792e702 Subject: Re: [users@httpd] ErrorDocument not read with fcgid --001a1141257e943afd052792e702 Content-Type: text/plain; charset=UTF-8 Hi Xavier, what is the exact problem that you are seeing and what are you trying to achieve? The two error document directives should issue an HTTP redirect (to auth.example.com) according to https://httpd.apache.org/docs/2.4/custom-error.html#configuration, but given the port number I guess that it is not probably what you want. Luca 2015-12-23 8:52 GMT+01:00 Xavier : > Hi all, > > I'm trying to use ErrorDocument directive with mod_fcgid but it is not > interpreted as it works fine for static documents. Here is my > virtualhost conf: > > > ErrorDocument 403 http://auth.example.com:19876/?lmError=403 > ErrorDocument 404 http://auth.example.com:19876/?lmError=404 > ServerName manager.example.com > LogLevel debug > > # Redirect REST request to fcgi > RewriteEngine on > RewriteRule "^/$" "/psgi/manager-server.fcgi" [PT] > RewriteCond "%{REQUEST_FILENAME}" "!^/(?:static|doc|fr-doc|lib).*" > RewriteRule "^/(.+)$" "/psgi/manager-server.fcgi/$1" [PT] > > Alias /psgi/ /home/xavier/dev/lemonldap/e2e-tests/ > > SetHandler fcgid-script > Options +ExecCGI > > DocumentRoot /home/xavier/dev/lemonldap/lemonldap-ng-manager/site/ > > Require all granted > Options +FollowSymLinks > > > Require all granted > Options +FollowSymLinks > > > > Regards, > Xavier > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --001a1141257e943afd052792e702 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Xavier,

what is the exact problem th= at you are seeing and what are you trying to achieve? The two error documen= t directives should issue an HTTP redirect (to auth.example.com) according to=C2=A0https://httpd.apache.org= /docs/2.4/custom-error.html#configuration, but given the port number I = guess that it is not probably what you want.

Luca<= /div>


2015-12-23 8:52 GMT+01:00 Xavier <x.guimard@free.fr>:
Hi all,

I'm trying to use ErrorDocument directive with mod_fcgid but it is not<= br> interpreted as it works fine for static documents. Here is my
virtualhost conf:

<VirtualHost *:80>
=C2=A0 ErrorDocument 403 http://auth.example.com:19876/= ?lmError=3D403
=C2=A0 ErrorDocument 404 http://auth.example.com:19876/= ?lmError=3D404
=C2=A0 ServerName manager.example.com
=C2=A0 LogLevel debug

=C2=A0 # Redirect REST request to fcgi
=C2=A0 RewriteEngine on
=C2=A0 RewriteRule "^/$" "/psgi/manager-server.fcgi" [P= T]
=C2=A0 RewriteCond "%{REQUEST_FILENAME}" "!^/(?:static|doc|f= r-doc|lib).*"
=C2=A0 RewriteRule "^/(.+)$" "/psgi/manager-server.fcgi/$1&q= uot; [PT]

=C2=A0 Alias /psgi/ /home/xavier/dev/lemonldap/e2e-tests/
=C2=A0 <Directory /home/xavier/dev/lemonldap/e2e-tests/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 SetHandler fcgid-script
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Options +ExecCGI
=C2=A0 </Directory>
=C2=A0 DocumentRoot /home/xavier/dev/lemonldap/lemonldap-ng-manager/site/ =C2=A0 <Location />
=C2=A0 =C2=A0 Require all granted
=C2=A0 =C2=A0 Options +FollowSymLinks
=C2=A0 </Location>
=C2=A0 <Directory /home/xavier/dev/lemonldap/lemonldap-ng-manager/site/s= tatic/>
=C2=A0 =C2=A0 Require all granted
=C2=A0 =C2=A0 Options +FollowSymLinks
=C2=A0 </Directory>
</VirtualHost>

Regards,
Xavier

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


--001a1141257e943afd052792e702--