httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Toscano <toscano.l...@gmail.com>
Subject Re: [users@httpd] ErrorDocument not read with fcgid
Date Wed, 23 Dec 2015 16:06:27 GMT
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 <x.guimard@free.fr>:

> 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:
>
> <VirtualHost *:80>
>   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/
>   <Directory /home/xavier/dev/lemonldap/e2e-tests/>
>         SetHandler fcgid-script
>         Options +ExecCGI
>   </Directory>
>   DocumentRoot /home/xavier/dev/lemonldap/lemonldap-ng-manager/site/
>   <Location />
>     Require all granted
>     Options +FollowSymLinks
>   </Location>
>   <Directory /home/xavier/dev/lemonldap/lemonldap-ng-manager/site/static/>
>     Require all granted
>     Options +FollowSymLinks
>   </Directory>
> </VirtualHost>
>
> Regards,
> Xavier
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message