New Nginx Conf with Rails Caching
Posted by ezmobius Tue, 12 Sep 2006 16:02:00 GMT
[UPDATE] The config file has been updated and commented so it is easier to figure out. It also sets the right header when it proxies to mongrel and doesn;t choke on the foo.js?394732323 urls that rails generated for static assets.
OK this is very sweet. We have a new Nginx conf file that works perfectly with rails page caching. nginx serves all static files and all rails cached file. Fast
I want to thank Alexy Kovyrin and James Cox for their help in getting this config perfected. This makes nginx truly one of the best options for fronting a cluster of mongrels.
Might as well get the latest version while we’re at it.
curl -O http://sysoev.ru/nginx/nginx-0.4.0.tar.gz tar -xvzf nginx-0.4.0.tar.gz cd nginx-0.4.0 ./configure --sbin-path=/usr/local/sbin --with-http_ssl_module make sudo make install
Now for the new config file. Here you go folks, get it while its hot!