2010/7/13 eni-urgence <[email protected]>:
> Hello everybody.
>
>   1) I want to use the errorfile directive in the configuration in order to
> display a custom html page (on proxy disk). Is it possible to include an
> image file in those pages ? And if not, if I use html page stored on a
> webserver, can I include image and css ?

For image/css and so on, use errorloc and run small webserver like
nginx. Working in my case really cool.
Got configuration like this:

backend error
        option  httpchk HEAD /check.txt HTTP/1.0
        server  error           127.0.0.1:8000 check inter 3000 fall 2 rise 2

frontend some_domain.pl x.y.z.t:80
        errorloc        400     http://error.some_domain.pl/400.html
        errorloc        403     http://error.some_domain.pl/403.html
        errorloc        408     http://error.some_domain.pl/408.html
        errorloc        500     http://error.some_domain.pl/500.html
        errorloc        502     http://error.some_domain.pl/502.html
        errorloc        503     http://error.some_domain.pl/503.html
        errorloc        504     http://error.some_domain.pl/504.html
[...]

Nginx listen any domain and display correct error page, or define
different error page for each domain.

-- 
Łukasz Jagiełło
lukasz<at>jagiello<dot>org

Reply via email to