When building www/rubygem-passenger with make FLAVOR=nginx install the concluding information points to the wrong (i.e. apache) module: Quote begin ---- Please edit your Apache configuration file, and add these lines: LoadModule passenger_module /usr/local/lib/ruby/gems/2.4/gems/passenger-5.3.5/buildout/apache2/mod_passenger.so PassengerRoot /usr/local/lib/ruby/gems/2.4/gems/passenger-5.3.5 PassengerRuby /usr/local/bin/ruby24 After you restart Apache, you are ready to deploy any number of Ruby on Rails applications on Apache, without any further Ruby on Rails-specific configuration! Quote end ---- It should point to the nginx module, which is located here after passenger installation: /usr/local/libexec/nginx/ngx_http_passenger_module.so
A commit references this bug: Author: osa Date: Sun Oct 7 16:18:59 UTC 2018 New revision: 481455 URL: https://svnweb.freebsd.org/changeset/ports/481455 Log: Add another package message file to fix the issue with it for nginx flavor. Bump PORTREVISION. PR: 231877 Changes: head/www/rubygem-passenger/Makefile head/www/rubygem-passenger/files/pkg-message-apache.in head/www/rubygem-passenger/files/pkg-message-nginx.in head/www/rubygem-passenger/files/pkg-message.in
The issue has been fixed.