Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

readme

  • Loading branch information...
commit 048406f20bbe74e0c244abc40e082e525791ec80 1 parent 21867ad
Jan Schulz-Hofen yeah authored
Showing with 11 additions and 11 deletions.
  1. +11 −11 README.rdoc
22 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...
Please sign in to comment.
Something went wrong with that request. Please try again.