I’ve been using russian technology for about a week now and it works really well with Rails and is easy to set up in general.
I’d like to thank err for his nginx config generator and Ezra for making me aware of nginx and his config file. This combination got me up and runing with ngnix in about 5 minutes.
However, I needed to modify the generated config file a bit to fit the standard debian file paths and users. So I modified the ERB template which is used to generate the config file. It should be fully backwards compatible, so if you don’t need all of these modifications you could use it and just use the modifications you need. Here’s the template with my modifications
My YAML file looks like this:
user: www-data
group: www-data
pid_path: /var/run/
config_path: /etc/nginx/
log_path: /var/log/nginx_
- This defines the default roots and alternate roots.
- The name (or key) of your site will be sprintf’d with
- the below root, right.
root:
blog: /srv/hendrikvolkmer.de/blog/public
www: /var/www
- All your vhosts.
sites:
blog:
upstream:
– 127.0.0.1:3000
– 127.0.0.1:3001
- I added a special feeds config which generates the
- if ($http_user_agent !~ FeedBurner) line before the actual rewrite
- line. Works fine with Mephisto and, of course Feedburner, YMMV
feeds:
– ^/feed/atom.xml http://feeds.feedburner.com/hendrikvolkmer
– ^/feed/all_comments.xml http://feeds.feedburner.com/hendrikvolkmer_comments
Also, it’s really easy to compile nginx 0.5.20 for Debian: Just download the source, make the necessary modifications to the current deb file specifications and compile. :)
Related Posts
- There will be no reliable cloud (part 3) - How I stopped worrying and love the cloud
- There will be no reliable cloud (part 2) - Complexity and scale lead to a system design that can only be unreliable at the infrastructure layer
- There will be no reliable cloud (part 1) - Stop wasting your time trying to find one. Stop wasting your time (and money) trying to build one.