Homepage selbermachen 7.851 Themen, 35.616 Beiträge

Apache Server - FehlerMeldungen ändern

PingOfDeath / 2 Antworten / Flachansicht Nickles

Hallo :-)

Kann man irgendwie die Fehlermeldungen ändern wenn z.B. eine Seite oder Datei auf meinem Server nicht gefunden wurde dass dann ein Bild geladen wird ?

Gruß, PingOfDeath

bei Antwort benachrichtigen
Zaphod PingOfDeath „Apache Server - FehlerMeldungen ändern“
Optionen

... kann man, wird in der httpd.conf geregelt ...
8> # 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 404 /missing.html
# to redirect to local URL /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
# N.B.: You can redirect to a script or a document using server-side-includes.
#
# 3) external redirects
#ErrorDocument 402 http://some.other_server.com/subscription_info.html
# N.B.: Many of the environment variables associated with the original
# request will *not* be available to such a script.
-------------------------------------------------------------------> Für Apache 1.3x: http://httpd.apache.org/docs/mod/core.html#errordocument
für 2.x:
http://httpd.apache.org/docs-2.0/mod/core.html#errordocument

HTH, Z.

bei Antwort benachrichtigen