nginx
Custom Nginx logging format
I’m trying to figure out if my nginx proxy cache is working or not. Reference these pages to hopefully log cache hits and misses.
#I put this in my nginx vhost config file log_format up_head ‘$remote_addr [$time_local]’ ‘upstream_cache_status $upstream_cache_status’; #write log using the "up_head" format that I just defined. access_log /path/to/log/access.log up_head;
Sample log output of the example defined above.
127.0.0.1 [16/Jan/2011:20:22:25 +0000]upstream_cache_status HIT 127.0.0.1 [16/Jan/2011:20:22:26 +0000]upstream_cache_status – 127.0.0.1 [16/Jan/2011:20:22:26 +0000]upstream_cache_status – 127.0.0.1 [16/Jan/2011:20:22:27 +0000]upstream_cache_status HIT 127.0.0.1 [16/Jan/2011:20:22:28 +0000]upstream_cache_status – 127.0.0.1 [16/Jan/2011:20:22:28 +0000]upstream_cache_status – 127.0.0.1 [16/Jan/2011:20:22:45 +0000]upstream_cache_status HIT
http://www.ruby-forum.com/topic/185608
http://wiki.nginx.org/NginxHttpUpstreamModule#.24upstream_addr
http://wiki.nginx.org/NginxHttpLogModule
nginx caching for wordpress and drupal
Use Boost module for Drupal and then copy some nginx rules.
http://mechanix-tips.blogspot.com/2009/02/drupal-boost-rules-for-nginx.h...
Wordpress Nginx proxy cache integrator plugin. Rather doing a proxy to Apache, I proxy nginx back to itself on a different port that is running fastCGI for the PHP.
http://wordpress.org/extend/plugins/nginx-proxy-cache-integrator/
Get spawn-fcgi to work with nginx on ubuntu
http://whatan00b.com/running-lamp-applications-using-nginx
This is what I used to setup a startup script for fastCGI to work with nginx. That allows me to run multiple wordpress blogs off my slicehost.
Once it is setup I can start/restart my FastCGI processes easily.
/etc/init.d/fastcgi start /etc/init.d/fastcgi restart /etc/init.d/fastcgi stop
Recent blog posts
- Amazon S3 Website CNAME
- Button labels for checkout
- Insert html django contrib messages
- Twitter Bootstrap not working with LESS.js
- Javascript libs that offer basic subset of jquery features
- Building the donor-matic
- Playing with free Google Map alternatives.
- Some flows are not as complicated as they appear
- Form design crib sheet
- Script to get IE9 Windows Virtual PC images into Virtual Box