diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-29 00:14:05 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-29 00:14:05 +0000 |
commit | b583d23f956ff86d82d24acbb3e641c683251663 (patch) | |
tree | 4eac2ea127a9b7610e0671ffa6d6fbd7a8c748b4 | |
parent | 14320dd3e20b7918022e510dbcae9181752e715b (diff) | |
download | rails-b583d23f956ff86d82d24acbb3e641c683251663.tar.gz rails-b583d23f956ff86d82d24acbb3e641c683251663.tar.bz2 rails-b583d23f956ff86d82d24acbb3e641c683251663.zip |
Added gzip compression for JavaScript, CSS, and HTML to default lighttpd.conf [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/CHANGELOG | 5 | ||||
-rw-r--r-- | railties/configs/lighttpd.conf | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index b32709299a..28db58e797 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,3 +1,8 @@ +*SVN* + +* Added gzip compression for JavaScript, CSS, and HTML to default lighttpd.conf [DHH] + + *1.1.0* (March 27th, 2005) * Allow db:fixtures:load to load a subset of the applications fixtures. [Chad Fowler] diff --git a/railties/configs/lighttpd.conf b/railties/configs/lighttpd.conf index 097bb44817..38a337d43a 100644 --- a/railties/configs/lighttpd.conf +++ b/railties/configs/lighttpd.conf @@ -3,7 +3,7 @@ server.port = 3000 -server.modules = ( "mod_rewrite", "mod_accesslog", "mod_fastcgi" ) +server.modules = ( "mod_rewrite", "mod_accesslog", "mod_fastcgi", "mod_compress" ) server.error-handler-404 = "/dispatch.fcgi" server.document-root = CWD + "/public/" @@ -11,6 +11,7 @@ server.errorlog = CWD + "/log/lighttpd.error.log" accesslog.filename = CWD + "/log/lighttpd.access.log" url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" ) +compress.filetype = ( "text/plain", "text/html", "text/css", "text/javascript" ) # Change *-procs to 2 if you need to use Upload Progress or other tasks that # *need* to execute a second request while the first is still pending. |