aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-01-25 23:57:44 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-01-25 23:57:44 +0530
commit368f0fe2d359209e2475a90bc7ef859cd93cc0a3 (patch)
tree7e3df823fe55d8ddde608837092ce2f1051e6367 /railties/guides/source
parentb32ebf0461d8c6eebe5142f4ad7f38a8484b436b (diff)
downloadrails-368f0fe2d359209e2475a90bc7ef859cd93cc0a3.tar.gz
rails-368f0fe2d359209e2475a90bc7ef859cd93cc0a3.tar.bz2
rails-368f0fe2d359209e2475a90bc7ef859cd93cc0a3.zip
Revert "Added Apache configuration for dynamic gzip content"
This reverts commit fce92fd8a7e407b034d189a652af81a06ac98730. Reason: We want any config that goes into the guides to be 100% right and I'm not entirely sure that this one is it. We already had a similar config that was removed in https://github.com/rails/rails/commit/b1c20e37eccdfab7bb94d34f249c5e49256b9980
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/asset_pipeline.textile25
1 files changed, 1 insertions, 24 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index f6e56ed529..ff2bd08602 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -505,30 +505,7 @@ This directive is available if the core module that provides this feature was co
If you're compiling nginx with Phusion Passenger you'll need to pass that option when prompted.
-For Apache:
-
-Using the Apache config tricks found on the Crave DIY blog, the following rewrite rules check the client's header to see if gzip is supported, then checks the filesystem to ensure a gzipped version exists, finally serving the gzipped file and forcing a the appropriate type.
-
-<plain>
-# Turn on the Rewrite engine
-RewriteEngine On
-# Check the client headers to see if they accept gzips
-RewriteCond %{HTTP:Accept-Encoding} gzip
-# Confirm the file exists in gzip format
-RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}.gz -f
-# Rewrite url to us gzip file
-RewriteRule (.*\.(js|css))$ $1\.gz [L]
-
-# If we've rewritten to a .css.gz file, force text/css
-<FilesMatch .*\.css.gz>
- ForceType text/css
-</FilesMatch>
-
-# If we've rewritten to a .js.gz file, force application/x-javascript
-<FilesMatch .*\.js.gz>
- ForceType application/x-javascript
-</FilesMatch>
-</plain>
+A robust configuration for Apache is possible but tricky; please Google around. (Or help update this Guide if you have a good example configuration for Apache.)
h4. Live Compilation