Permalink
Browse files

Configure Apache to use the `404.html` page

Fix #155.
  • Loading branch information...
1 parent f6b9d5b commit 2bfdbb47e59ace6767bc82b7b5e727ba7c3018e3 @alrra alrra committed Dec 16, 2013
Showing with 15 additions and 7 deletions.
  1. +15 −7 .htaccess
View
@@ -1,11 +1,10 @@
+# ------------------------------------------------------------------------------
+# | Cross-domain AJAX requests |
+# ------------------------------------------------------------------------------
-# ----------------------------------------------------------------------
-# Cross-domain AJAX requests
-# ----------------------------------------------------------------------
-
-# Serve cross-domain Ajax requests, disabled by default.
-# enable-cors.org
-# code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
+# Enable cross-origin AJAX requests.
+# http://code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
+# http://enable-cors.org/
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
@@ -15,3 +14,12 @@
<FilesMatch "script\.min\.js$">
Header set X-SourceMap "../script.min.js.map"
</FilesMatch>
+
+# ------------------------------------------------------------------------------
+# | Custom error messages / pages |
+# ------------------------------------------------------------------------------
+
+# You can customize what Apache returns to the client in case of an error (see
+# http://httpd.apache.org/docs/current/mod/core.html#errordocument).
+
+ErrorDocument 404 /404.html

0 comments on commit 2bfdbb4

Please sign in to comment.