mirror of
https://github.com/apache/httpd.git
synced 2026-01-26 19:01:35 +03:00
Remove some comments from the errordocument and browsermatch sections.
I like short config files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92347 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -795,29 +795,15 @@ AddHandler type-map var
|
||||
#
|
||||
|
||||
#
|
||||
# Customizable error response (Apache style)
|
||||
# these come in three flavors
|
||||
# Customizable error responses come in three flavors:
|
||||
# 1) plain text 2) local redirects 3) external redirects
|
||||
#
|
||||
# 1) plain text
|
||||
# Some examples:
|
||||
#ErrorDocument 500 "The server made a boo boo."
|
||||
#
|
||||
# 2) local redirects
|
||||
#ErrorDocument 404 /missing.html
|
||||
# to redirect to local URL /missing.html
|
||||
#ErrorDocument 404 "/cgi-bin/missing_handlder.pl"
|
||||
# i.e. any string which starts with a '/' and has
|
||||
# no spaces.
|
||||
# N.B.: You can redirect to a script or a document using server-side-includes.
|
||||
#
|
||||
# 3) external redirects
|
||||
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
|
||||
#ErrorDocument 402 http://www.example.com/subscription_info.html
|
||||
# i.e. any string whichis a valid URL.
|
||||
# N.B.: Many of the environment variables associated with the original
|
||||
# request will *not* be available to such a script.
|
||||
#
|
||||
# 4) borderline case
|
||||
#ErrorDocument 402 "http://www.example.com/info.html is the place to look"
|
||||
# treated as case '1' as it has spaces and thus is not a valid URL
|
||||
|
||||
#
|
||||
# Putting this all together, we can Internationalize error responses.
|
||||
@@ -869,21 +855,11 @@ AddHandler type-map var
|
||||
</IfModule>
|
||||
|
||||
#
|
||||
# The following directives modify normal HTTP response behavior.
|
||||
# The first directive disables keepalive for Netscape 2.x and browsers that
|
||||
# spoof it. There are known problems with these browser implementations.
|
||||
# The second directive is for Microsoft Internet Explorer 4.0b2
|
||||
# which has a broken HTTP/1.1 implementation and does not properly
|
||||
# support keepalive when it is used on 301 or 302 (redirect) responses.
|
||||
# The following directives modify normal HTTP response behavior to
|
||||
# handle known problems with browser implementations.
|
||||
#
|
||||
BrowserMatch "Mozilla/2" nokeepalive
|
||||
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
|
||||
|
||||
#
|
||||
# The following directive disables HTTP/1.1 responses to browsers which
|
||||
# are in violation of the HTTP/1.0 spec by not being able to grok a
|
||||
# basic 1.1 response.
|
||||
#
|
||||
BrowserMatch "RealPlayer 4\.0" force-response-1.0
|
||||
BrowserMatch "Java/1\.0" force-response-1.0
|
||||
BrowserMatch "JDK/1\.0" force-response-1.0
|
||||
|
||||
Reference in New Issue
Block a user