Skip to content

Instantly share code, notes, and snippets.

@pdcawley
Created July 4, 2010 15:14
Show Gist options
  • Save pdcawley/463515 to your computer and use it in GitHub Desktop.
Save pdcawley/463515 to your computer and use it in GitHub Desktop.
PassengerEnabled On
PassengerAppRoot /home/pdcawley/typo
RewriteEngine On
RewriteRule ^/$ /cache/index.html [QSA]
RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_FILENAME} -f
RewriteRule ^/(.*)$ /cache/$1 [PT]
RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_FILENAME}.html -f
RewriteRule ^/(.*)$ /cache/$1.html [PT]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
# In case Typo experiences terminal errors
# Instead of displaying this message you can supply a file here which will be rendered instead
#
# Example:
# ErrorDocument 500 /500.html
ErrorDocument 500 "<h2>Application error</h2>Typo failed to start properly"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment