August 2017
Intermediate to advanced
278 pages
8h 53m
English
Passenger comes with a basic tool to help create your NGINX configuration for you. To use it, run the following:
passenger start --debug-nginx
I have simplified the generated configuration, simply because many of the directives were setting it to the defaults anyway.
In the main NGINX configuration (generally, /etc/nginx/nginx.conf), we need to add the following within the http directive block:
include '/var/lib/gems/2.3.0/gems/passenger-5.0.27/resources/mime.types'; passenger_root '/var/lib/gems/2.3.0/gems/passenger-5.0.27'; passenger_abort_on_startup_error on; passenger_ctl cleanup_pidfiles L3RtcC9wYXNzZW5nZXItc3RhbmRhbG9uZS41aDBnZG0vdGVtcF9kaXJfdG91Y2hlci5waWQ=; passenger_ctl integration_mode standalone; passenger_ctl standalone_engine ...
Read now
Unlock full access