HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
To activate Phusion Passenger for Nginx, run:
brew install nginx
And add the following to $HOMEBREW_PREFIX/etc/nginx/nginx.conf at the top scope (outside http{}):
load_module $HOMEBREW_PREFIX/opt/passenger/libexec/modules/ngx_http_passenger_module.so;
And add the following to $HOMEBREW_PREFIX/etc/nginx/nginx.conf in the http scope:
passenger_root $HOMEBREW_PREFIX/opt/passenger/libexec/src/ruby_supportlib/phusion_passenger/locations.ini;
passenger_ruby /usr/bin/ruby;
To activate Phusion Passenger for Apache, create /etc/apache2/other/passenger.conf:
LoadModule passenger_module $HOMEBREW_PREFIX/opt/passenger/libexec/buildout/apache2/mod_passenger.so
PassengerRoot $HOMEBREW_PREFIX/opt/passenger/libexec/src/ruby_supportlib/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby