Hallo Juergen,

Juergen Daubert <[email protected]> schrieb:
> On Wed, May 12, 2010 at 02:04:27PM +0200, Lars Täuber wrote:
> > Hi there!
> 
> Hello,
> 
> > 
> > I'm new to mathopd but I thought it could serve all my wishes.
> > 
> > The question is: Does mathopd support setting standard error pages?
> 
> Yes, see http://www.mathopd.org/wiki?ErrorFile

thanks alot. That is exactly what i was looking for.

> 
> > I have a small energy saving webserver that still runs when all other 
> > webservers are shut down due to power out. This server is backuped by an 
> > ups.
> > It will be configured to take over the ip addresses of the shut down 
> > webservers and should serve a single static webpage for each virtual host 
> > configuration.
> > 
> > The question is can mathopd redirect all requests to a single html file?
> > 
> > e.g.
> > 
> > http://abc.domain.org/xyz/file.html 
> > should not generate a 404 error page but reply the standard file:
> > /srv/www/abc.domain.org/index.html
> 
> Setup virtual hosts and use the Error404File directive within a Control
> block:
> 
>  Virtual {
>      Control { 
>          Host abc.domain.org
>          Alias /
>          Location /srv/www/abc.domain.org/index.html
>          Error404File /srv/www/abc.domain.org/index.html
>      }
>  }

Thanks for this too. Is shortens my reading time significantly.


> Unfortunately you have to do that for every host, because Error404File
> cannot expand the * wildcard like Location does, see the Location
> wiki-page to see what I mean: http://www.mathopd.org/wiki?Location

This is not a problem, because every domain uses a different file.

best regards
Lars

> One possibility to solve this might be to use a CGI script insatead of 
> a static page for Error404File that reads the REQUEST_URI environment 
> variables and redirects the user to the right error-page. 
> See http://www.mathopd.org/wiki?CGI/EnvironmentVariables
> 
> 
> HTH and regards
> Juergen
> 
> -- 
> Juergen Daubert  |  mailto:[email protected]  


-- 
                            Informationstechnologie
Berlin-Brandenburgische Akademie der Wissenschaften
Jägerstrasse 22-23                     10117 Berlin
Tel.: +49 30 20370-352           http://www.bbaw.de

Reply via email to