This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fleshing out the README. Adding the referenced .htaccess file and the…

… header and footer HTML files.
  • Loading branch information...
bryanveloso committed Sep 23, 2009
1 parent 4d0f5c5 commit 719f97775966f0b9cb7020febbfd95f1c6319787
Showing with 38 additions and 1 deletion.
  1. +16 −0 .htaccess
  2. +9 −1 README.markdown
  3. +3 −0 ssi/footer.html
  4. +10 −0 ssi/header.html
View
@@ -0,0 +1,16 @@
+# This .htaccess file controls the error documents themselves.
+# All of this is credited to <http://www.askapache.com/htaccess/advanced-htaccess-ssi.html>
+
+# Turn on symlinks for rewrites and turn off SSI's ability to exec.
+Options None
+Options SymLinksIfOwnerMatch IncludesNOEXEC
+
+# Make files ending in .html be filtered through the INCLUDES filter before being sent to the client.
+AddOutputFilter Includes html
+
+# This internal Apache variable prevents your error documents from allowing keep-alive connections.
+SetEnv nokeepalive
+
+# These are used to determine the time and for SSI output.
+SetEnv TZ America/Los_Angeles
+SetEnv SERVER_ADMIN servers@revyver.com
View
@@ -22,4 +22,12 @@ This is tailored for my Webfaction usage, so the easiest way to use these files
ErrorDocument 504 /errors/504.html
ErrorDocument 505 /errors/505.html
-Should work that way for any shared server environment, although slapping these in your `httpd.conf` might work just as well.
+Should work that way for any shared server environment, although slapping these in your `httpd.conf` might work just as well.
+
+To make things easier (on me), the error documents use SSI. So you can edit `/errors/ssi/header.html` and `/errors/ssi/footer.html` to suit your needs. There is a CSS file referenced to make the error pages pretty that pulls off of my S3 server, you can choose to use it or replace it with your own.
+
+Finally, there is an `.htaccess` file that sits at the root of _this_ directory. In it, you should change the following from the defaults I have in place:
+
+ SetEnv TZ America/Los_Angeles
+ SetEnv SERVER_ADMIN servers@revyver.com
+
View
@@ -0,0 +1,3 @@
+</div>
+</body>
+</html>
View
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title><!--#echo encoding="none" var="REQUEST_URI" --> <!--#echo encoding="none" var="TITLE" --></title>
+ <link rel="stylesheet" href="http://cloud.revyver.com/labs/errors.css" />
+ <link rel="made" href="mailto:<!--#echo encoding="url" var="SERVER_ADMIN" -->" />
+</head>
+<body>
+<div class="page">

0 comments on commit 719f977

Please sign in to comment.