← Back to team overview

sslug-teknik team mailing list archive

Apache fejlhåndtering

 

Jeg har kreeret en lille php-side, som der skal være local redirects til ved
fejl, min httpd.conf ser således ud:

# Customizable error response (Apache style)
#  these come in three flavors
#
#    1) plain text
#ErrorDocument 500 "The server made a boo boo.
#  n.b.  the (") marks it as text, it does not get output
#
#    2) local redirects

ErrorDocument 400 /error_http.php?err=400
ErrorDocument 404 /error_http.php?err=404
ErrorDocument 401 /error_http.php?err=401
ErrorDocument 404 /error_http.php?err=404
ErrorDocument 403_8 /error_http.php?err=4038

Mit spørgsmål er nu, er der ikke en måde man kan lave en generel
ErrorDocument-linie, som virker for alle og referer til siden, med den
rigtige $err.

Håber det er forståeeligt ;)

MVH
Marco Tecedor @ TrippeT.dk

- I need a woman that can come over, cook me dinner, give me a back rub and
recompile my kernel -