Permalink
Browse files

readme

  • Loading branch information...
1 parent 21867ad commit 048406f20bbe74e0c244abc40e082e525791ec80 @yeah yeah committed Sep 12, 2009
Showing with 11 additions and 11 deletions.
  1. +11 −11 README.rdoc
View
@@ -12,17 +12,17 @@ PageCacheFu adds the following missing features:
* Set up a cronjob to periodically run the <code>page_cache_fu:sweep_expired_page_caches</code> Rake task.
* Tell your Apache to use the new cache location using something like this in your <code>Virtualhost</code> config:
- RewriteMap uri_escape int:escape
- <Directory /path/to/my/rails_app/public/>
- RewriteEngine On
- RewriteCond %{REQUEST_METHOD} GET [NC]
- RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}%{REQUEST_URI}%{QUERY_STRING}.html -f
- RewriteRule ^([^.]+)$ cache/%{HTTP_HOST}/$1${uri_escape:%{QUERY_STRING}}.html [L]
-
- RewriteCond %{REQUEST_METHOD} GET [NC]
- RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/index.html -f
- RewriteRule ^$ cache/%{HTTP_HOST}/index.html
- </Directory>
+ RewriteMap uri_escape int:escape
+ <Directory /path/to/my/rails_app/public/>
+ RewriteEngine On
+ RewriteCond %{REQUEST_METHOD} GET [NC]
+ RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}%{REQUEST_URI}%{QUERY_STRING}.html -f
+ RewriteRule ^([^.]+)$ cache/%{HTTP_HOST}/$1${uri_escape:%{QUERY_STRING}}.html [L]
+
+ RewriteCond %{REQUEST_METHOD} GET [NC]
+ RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/index.html -f
+ RewriteRule ^$ cache/%{HTTP_HOST}/index.html
+ </Directory>
If someone could supply a nginx sample config, it'd be greatly appreciated...

0 comments on commit 048406f

Please sign in to comment.