![](https://seccdn.libravatar.org/avatar/d637c21d919d6695a47c052cbc32aac2.jpg?s=120&d=mm&r=g)
Hi, On Friday, November 21, 2003 at 21:40:54, Joe Sunrider wrote:
ich wollte gerne bei meinem Apache globale Error-sites anlegen. Dies funktioniert aber aus irgendeinem Grund nicht.
Die Seiten sind gespeichert unter /home/www/error/
Nun gebe ich in der httpd.conf folgende Zeilen ein:
ErrorDocument 404 /home/www/error/404.html ErrorDocument 403 /home/www/error/403.html
Nur egal von welchem User ich eine nicht existierende Seite aufrufe, es kommt nicht die in der httpd.conf angegebene Seite.
Die müssen schon im für ServerRoot sein. Aus 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 single leading (") 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. Das heißt du müsstest http://deinserver/home/www/error/403.html eingeben können. Henne -- Hendrik Vogelsang aka Henne mailto: hvogel<at>hennevogel.de You are not how much you have in the bank. # random sigs made with fortune