PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [FRAGE] Apache Fehlermeldungen ändern?



penguin007
22.05.02, 22:01
Hallo

Wie ändere ich die Fehlermeldungen bei einem Apache Server, zb. solche Meldungen:

=====schnipp==========

Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

--------------------------------------------------------------------------------

Apache/1.3.23 Server at 192.168.0.1 Port 80

=====schnipp========
Unter ändern meine Ich damit andere Schrift und Hintergrundfarbe etc. !



Tschüss

wwwrun
23.05.02, 09:03
Hi,
APACHE 2x:
In der Server Root gibts ein verzeichnis ./error
darin wiederum ./include
Darin findest Du bottom.html und top.html die Du anpassen kannst wie Du willst.

APACHE 1.3x:
Wenn Du einen 1.3er Apachen hasst, findest Du dieses in der httpd.conf:
# 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.
Danach kannst Du deinen eigenen errordocumente bauen.

MfG
wwwrun

penguin007
23.05.02, 18:51
Hallo

Danke für deine Antwort!
Jetzt kann ich mich damit spielen! ;)


Bis bald

Tschüss