Dead easy nginx configuration on Gentoo
Considering the hype about nginx in the Rails community, I figured it was about time to try it out.
One kink though. Running on Gentoo and using the latest nginx package. Default template has paths not suitable for this. Bummer.
Being the clever fellow he is, Chris’s generator does provide a way around this, by letting you specify your own template to use.
I took a little time to tweak his original template for Gentoo consumption. Behold!
Here’s how you’d use it, assuming you’ve gone through the steps already mentioned in the post.
$ wget http://p.caboo.se/182778.txt -O gentoo_nginx.conf.erb $ generate_nginx_config config.yml nginx.conf \ --template gentoo_nginx.conf.erb
You should be all set now.
One last note, you need to set
fair: false for your sites. The
fair directive doesn’t seem to work with the current version we have on Gentoo. I’m not positive, but I think it’s related to this post by Ezra