How do I get passenger to serve my page on port 80 or 443?
I followed the guides (starting here: https://linode.com/docs/development/ror/ruby-on-rails-nginx-debian/) to setup my server for RoR on nginx and debian, using Passenger. However, I can only load my site on port 3000. The closest I can get to accessing my site without specifying the port is an error page from Passenger.
I'm happy to provide information on my server configuration.
For starters, here is my /etc/nginx/sites-available/[mysite] configuration.
server {
listen 80 default_server;
listen [::]:80;
server_name 45.79.8.49 vault.ifrog.com;
passenger_ruby /usr/local/rvm/gems/ruby-2.5.1/wrappers/ruby;
passenger_enabled on;
root /var/www/html/vault/public;
}
1 Reply
Greetings @leeatifrog,
I did some digging on my end and found documentation on the NGINX configuration. You'll also need to use Passenger Standalone. You can read about the solution below.
Deploying a Ruby App with Passenger Standalone: https://www.phusionpassenger.com/library/deploy/standalone/deploy/ruby/
Configuring Passenger Behind NGINX: https://www.phusionpassenger.com/library/deploy/standalone/reverse_proxy.html
Be sure to look at the configuration file they have. I saw that you were missing some key components.
Cheers,
Preston
Linode Support Team