nginx pow coexistence

I am a user of

Pow, is a zero-config Rack server for Mac OS X…serving your apps locally in under a minute

and

nginx, [engine x] is an HTTP and reverse proxy server

Now, pow is good for rack app but nothing else. But if nginx sits in front of pow, then awesome stuff happens. Here is the gist of it.

  1. configure nginx so that *.dev is passed to pow
  2. sudo launchctl unload -w /Library/LaunchDaemons/cx.pow.firewall.plist
  3. sudo launchctl load -w /Library/LaunchDaemons/nginx.plist

Now, you can have SSL, or play with php development along with rack apps. Profit!

 
1
Kudos
 
1
Kudos

Now read this

ruby defined? operator

Run this on ruby 1.9 require 'delegate' class Bam < SimpleDelegator def bam defined? Bam end def rails defined? Rails end end module Rails; end bam = Bam.new(Object.new) # I'm expecting "constant" to be returned but it's something... Continue →