This is the PKGBUILD and related source files to build nginx with support for Phusion Passenger on Arch Linux.
What, you wanted step-by-step install instructions? This package is available from the AUR. You can install it by using the official method for installing unsupported packages, which is exhaustively described in the Arch User Repository wiki article.
Once you've installed this package, nginx needs to be configured to enable passenger. Here's an example of /etc/nginx/nginx.conf:
http {
# Recommended
server_tokens off;
passenger_show_version_in_header off;
# Required
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /usr/bin/ruby;
...
# Example server block
server {
listen 443 ssl spdy;
server_name www.example.com;
root /srv/http/example/public; # <-- be sure to point to 'public'!
passenger_enabled on;
...
}
...
}
Please consult the Phusion Passenger users guide, Nginx version for more advanced configuration.