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
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
- Moving from Wordpress on a VPS to Jekyll and Amazon S3 - How and why to move your blog from Wordpress to a static webpage that is hosted on Amazon S3 using the new website hosting feature
- Running an Ioke web application on Google App Engine using Ikanserve - A small howto on how to run an Ioke web application on the Google App Engine
- Predictably Irrational - Humans are more irrational than you thought. The book 'Predictably Irrational' by Dan Ariely gives great insight into human behaviour.