Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added gzip compression for JavaScript, CSS, and HTML to default light…
…tpd.conf [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Mar 29, 2006
1 parent 14320dd commit b583d23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions 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]
Expand Down
3 changes: 2 additions & 1 deletion railties/configs/lighttpd.conf
Expand Up @@ -3,14 +3,15 @@

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/"

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.
Expand Down

0 comments on commit b583d23

Please sign in to comment.