]> granicus.if.org Git - apache/commitdiff
We might want to disable this, by default, when we get ready for GA.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 20 Aug 2001 20:23:13 +0000 (20:23 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 20 Aug 2001 20:23:13 +0000 (20:23 +0000)
  ITMT, this provides a fantastic stress-test for interoperability of
  the ap_die handling, the includes filter, the negotiated typemap
  behavior and the new typemap-body functions.

  Keep adding to the list of errors as they are converted from the
  httpd-2.0/docs/docroot/error individual files into docs/error.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90423 13f79535-47bb-0310-9956-ffa450edef68

docs/conf/httpd-std.conf
docs/conf/httpd-win.conf

index 7c12139afdd3fcb0d6e8718ed35ef30b02fcb45d..e4200ac33691cd832511a484a71945df63c27fdc 100644 (file)
@@ -499,11 +499,6 @@ Alias /manual "@@ServerRoot@@/htdocs/manual"
     AllowOverride None
     Order allow,deny
     Allow from all
-#
-# Because we do not distribute type map files for htdocs/manual/,
-# we can save one stat call by not looking for one.
-#
-    DirectoryIndex index.html
 </Directory>
 
 #
@@ -836,6 +831,38 @@ AddType application/x-tar .tgz
 #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.
+#
+# We use Alias to redirect any /error/HTTP_<error>.html.var response to
+# our collection of by-error message multi-language collections.  We use 
+# includes to substitute the appropriate text.
+#
+# You can modify the messages' appearance without changing any of the
+# default HTTP_<error>.html.var files by adding the line;
+#
+#   Alias /error/include/ "/your/include/path/"
+#
+# which allows you to create your own set of files by starting with the
+# @@ServerRoot@@/error/include/ files and
+# copying them to /your/include/path/, even on a per-VirtualHost basis.
+#
+
+<IfModule mod_includes.c>
+    Alias /error/ "@@ServerRoot@@/error/"
+
+    <Directory "@@ServerRoot@@/error">
+        AllowOverride None
+        Options IncludesNoExec
+        AddHandler type-map var
+        SetOutputFilter Includes
+        Order allow,deny
+        Allow from all
+    </Directory>
+
+    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
+</IfModule>
+
 #
 # The following directives modify normal HTTP response behavior.
 # The first directive disables keepalive for Netscape 2.x and browsers that
index 82654074384d89f19e10e025b6b3d6a7f1e37038..167306e27589df5893f7ad4d635564d7c567368f 100644 (file)
@@ -426,11 +426,6 @@ Alias /manual "@@ServerRoot@@/htdocs/manual"
     AllowOverride None
     Order allow,deny
     Allow from all
-#
-# Because we do not distribute type map files for htdocs/manual/,
-# we can save one stat call by not looking for one.
-#
-    DirectoryIndex index.html
 </Directory>
 
 #
@@ -755,6 +750,38 @@ AddType application/x-tar .tgz
 #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.
+#
+# We use Alias to redirect any /error/HTTP_<error>.html.var response to
+# our collection of by-error message multi-language collections.  We use 
+# includes to substitute the appropriate text.
+#
+# You can modify the messages' appearance without changing any of the
+# default HTTP_<error>.html.var files by adding the line;
+#
+#   Alias /error/include/ "/your/include/path/"
+#
+# which allows you to create your own set of files by starting with the
+# @@ServerRoot@@/error/include/ files and
+# copying them to /your/include/path/, even on a per-VirtualHost basis.
+#
+
+<IfModule mod_includes.c>
+    Alias /error/ "@@ServerRoot@@/error/"
+
+    <Directory "@@ServerRoot@@/error">
+        AllowOverride None
+        Options IncludesNoExec
+        AddHandler type-map var
+        SetOutputFilter Includes
+        Order allow,deny
+        Allow from all
+    </Directory>
+
+    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
+</IfModule>
+
 #
 # The following directives modify normal HTTP response behavior.
 # The first directive disables keepalive for Netscape 2.x and browsers that