Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [phusion-passenger]

Phusion Passenger (originally called mod_rails or mod_rack) is a Rails application server designed for easy deployment and low maintenance hosting of Rack apps, including Rails, Sinatra, Camping, and other ruby-based web development micro-frameworks. Passenger supports both Apache and NGinx webservers and is written in C++.

0
votes
1answer
39 views

Limiting number of server methods in NGINX config file

I am trying to force a redirect for all non-www and non-https request to the https://www.example.com version of the site. It is a new site so there's no SEO implications of the redirects. I am trying ...
0
votes
1answer
64 views

Passenger 6 failing to launch - Cannot connect to TCP socket

I'm trying to use the new Generic Language Support in Passenger 6. On development, I can spawn my demo Go app as follows: passenger start --app-start-command 'env PORT=$PORT ./main' Everything ...
0
votes
0answers
23 views

Nginx Phusion Passenger Ruby: Don't send app log to nginx log

I'm running Nginx and Passenger to host a Ruby on Rails app. By default, the app logs quite a bit, and it goes to the dedicated app log. However, with Passenger and Nginx, all of the app's log are ...
0
votes
0answers
29 views

Serving files from nginx if apache returns 404

I'm new with nginx and apache so please forgive me if my question is difficult to understand. Currently I have passenger on apache serving the assets needed for my application, however, I also have ...
0
votes
0answers
14 views

Anything I should concern when using catch all server_name on nginx

I have Rails website where I want to enable my users to choose their custom domain and point to my website. I search and I found that I can declare catch app server block server { ...
0
votes
0answers
17 views

Nginx doesn't start API Passenger + Nodejs

server { listen 80 default_server; server_name _; location / { return 200 'I am alive'; } } server { passenger_enabled on; root /home/ubuntu/codebase/public; ...
0
votes
0answers
40 views

One codebase with multiple virtual hosts in Passenger & nginx

I have one backend code, but multiple sites that use the same code, but with different environmental variables. When I go to turku.kouluruoka.eliasojala.me, X-Backend-Server is kouluruoka-turku and ...
0
votes
2answers
2k views

Passenger + Nginx on ubuntu 18.04

I am trying to setup new server, but nginx is unable to load directive "passenger_enabled". May 03 11:35:28 xxxx nginx[11181]: nginx: [emerg] unknown directive "passenger_enabled" in /etc/nginx/sites-...
1
vote
1answer
1k views

How to properly use ENV variables in Nginx config?

I want to pass the RAILS_ENV env variable to nginx and use it to set the value for the rails_env directive. I can read the value of the variable from the environment with LUA module: location @app { ...
0
votes
1answer
51 views

nginx/Passenger: Serving up a cached file only if a parameter is not in request

For a given URL pattern (/scripts/.*\.meta\.js), I would like to have the following behaviour: If the URL contains a specific parameter (version), give the request to Passenger to handle. If the URL ...
1
vote
0answers
52 views

How can I debug Ruby Process that keeps climbing?

A few days ago all 4 of my app servers started having issues. It came after I deployed some code, but all I did was update a local database file that stores some IP Addresses, so I didn't make any ...
1
vote
0answers
11 views

How can I verify that my Passenger installation is working correctly?

I have a working Nginx web server and have just installed (I think - hence the question) passenger and updated the relevant host file with: passenger_enabled on; passenger_min_instances 1; After ...
2
votes
1answer
3k views

Apache Passenger Resolve Symlinks stopped working | Invalid command

I have a Ubuntu Server (16.04.3 LTS) with Apache 2.4.18 and redmine installed, following this installation guide. Therefor I edited the ssl.conf in my apache2/sites-available and added those lines: &...
0
votes
0answers
134 views

Python app not working with Apache + Passanger

I have a python app, and I'm trying to deploy it to a production server. I have a CentOS 6.9 VPS Server version: Apache/2.4.29 (cPanel) Server built: Jan 17 2018 14:02:24 I followed this tutorial:...
1
vote
0answers
69 views

ELB Instance Internal IP disclosure

There is a vulnerability detected by Nessus that involves Internal IP Disclosure in the Elastic Beanstalk servers with Nginx and Phusion Passenger at the response headers, in the Location header. I ...
1
vote
2answers
305 views

nginx passenger - restart app periodically or when it reaches too high memory

I have a memory leak on one of my apps being served with nginx + passenger and a min/max_instances 2 setting. Memory keeps growing up as time passes by, and this can be a problem on a machine with ...
0
votes
1answer
258 views

passenger friendly error page log file location

I am trying to troubleshoot a rails application running on apache2 and passenger. I tried looking into the global log file at /var/log/apache2/error.log however I don't see anything useful. What I did ...
2
votes
1answer
355 views

Set environment variables from header for Ruby/Rails app hosted in Nginx/Passenger

I installed a server for Redmine, running with Nginx/Passenger. The server also hosts Gitlab and it goes well. I put some kind of SSO plugin for Redmine (which I found and installed) and it needs an ...
3
votes
0answers
93 views

Multiple ruby on rails web apps running on one directory in Apache without modifying/adding <Directory> all the time

What I am trying to do is to create multiple ruby apps in one Apache directory and when I go to http://localhost/appname the ruby app resolves without problems. However, I want to do this dynamically ...
1
vote
1answer
221 views

Solved: rails app on nginx + passenger behind apache2 mod_proxy, ajax upload fails with error 500

The situation is as follows: I made a migration of a rails app from an Ubuntu server with nginx + passenger to a debian server with apache2 + passenger. All was fine until we tested some ajax ...
0
votes
1answer
621 views

Select specific Ruby version in Phusion Passenger Docker image

I am trying to deploy a Rails application in the Phusion-Passenger Docker image: https://github.com/phusion/passenger-docker The Gemfile for the application specifies Ruby version 2.3.1, but the ...
0
votes
0answers
65 views

When I upload my file using Rails app on Phusion Passenger, it gets permission 600

I have the Rails server setup using Apache and Phusion Passenger. As per their documentation, I have created a user specific to that app. This user has root access. When a file is uploaded via the ...
1
vote
0answers
49 views

/home, /tmp, /var on a separated partition and PassengerWatchdog and PassengerHelperAgent are running as root

I recently had a security audit on a Ubuntu 16.04 server and have 2 issues that I'm struggling to address. This is a server that can only be accessed through command-line/ssh and is hosted on AWS. 1) ...
1
vote
0answers
64 views

Passenger has modified NODE_PATH which my app uses during startup

I'm implementing Passenger, on an Apache server (a Digital Ocean droplet, running Ubuntu 16.04), with a Node.js app. Webpack successfully builds the static .js file, and Node successfully runs the ...
2
votes
1answer
216 views

NGINX redirect HTTPS partially works

I try to reddirect all my traffic on https. I use AWS, passenger + NGINX . So far with my smartphone ( android ) , chrome last version : http://server_name.com redirect to https... at home on my ...
0
votes
0answers
45 views

Reduce Rails Passenger Thread Counts

My host account is limited to 300 processes. As I turn on my rail app, it ate up 100 process immidiately. Does anyone know how to reduce "Passenger Core" and Passenger process count? This is my nginx ...
1
vote
1answer
232 views

Trouble with Passenger/Apache2 - Error 403

I need to upgrade my Redmine installation. I'm on a Mac OS X Server 10.6.8 (unfortunately, this is a given - can't update the system to a new version right now). In the process, I had issues with ...
0
votes
0answers
66 views

with nginx change url being sent to passenger

We are currently using passenger and nginx to deploy multiple rails apps to a server. Right now we are in a situation where we have one app that has a public URL, but we are working to standardize ...
1
vote
0answers
296 views

Phusion Passenger undefined symbol ap_log_error and duplicate Apache version

I try to install Phusion Passenger on my CentOS 6. After follow installation instruction from https://www.phusionpassenger.com/library/install/apache/install/oss/el6/ The last step is to restart ...
0
votes
1answer
95 views

Rails app works in ElasticBeanstalk but not in Docker Passenger container

I have a Rails app that works fine in ElasticBeanstalk. I am now trying to run in in the Docker Phusion Passenger Container. My Dockerfile is pretty simple: FROM phusion/passenger-ruby21:0.9.13 # ...
0
votes
2answers
369 views

Unable to update Phusion Passenger on Ubuntu 14.04: gnutls_handshake() failed:

I installed Phusion Passenger on Ubunut 14.04 a number of months back using the HOWTO here: https://www.phusionpassenger.com/library/install/apache/install/oss/trusty/ Recently, while updating system ...
2
votes
1answer
391 views

Why is my request queueing time so high?

I am running a Rails application server. My setup is: Apache 2, using mod_ssl for both https and ssl client certificates Phusion Passenger 5 Rails 4 Ruby 2.1 I use NewRelic to monitor the running ...
0
votes
0answers
448 views

How to access remote user name in nginx?

Please help, I have a RoR application running on RedHat 6.6 with Nginx as webserver and Passenger as application server. Now i need to implement SSO with windows authentication, i.e if a user has ...
0
votes
1answer
303 views

Running Ruby on Rails and PHP apps side-by-side under the same (Apache) web directory structure

My company have several apps running alongside on an Apache2 web server which resides on an Ubuntu server. Our setup includes: A portal website is set at Apache's document root "/" Another ...
0
votes
1answer
1k views

Passenger could not spawn process for application. Rails, ubuntu, passenger and apache

My application is crashing again and again. I am using the hosting services of digital ocean the status of the server are also displayed in the image (It start working when I restart the server but ...
0
votes
1answer
425 views

Let's encrypt allows only one vhost per file on ubuntu/apache

Currently I am trying to set up let's encrypt on my Ubuntu 16.04 server. I am using Apache 2.4.18 as my webserver and also passenger. I am using the following command to generate my certs and to ...
0
votes
1answer
39 views

After commenting out virtualnameHost on passenger_vhosts.conf my apache2 is only resolving to one domain

I have to hosts (domains) that i have added on the passenger_vhosts.conf. I had namevirtualhost*:80 on my conf file and i was able to resolve for two domain, after updating my apache2 the ...
0
votes
1answer
983 views

Message from application: cannot load such file — puppet/util/command_line (LoadError)

I have configured puppet with passenger (using - https://docs.puppet.com/guides/passenger.html AND http://www.olindata.com/blog/2014/09/setup-puppet-master-passenger-and-apache-centos ). [root@a-...
0
votes
2answers
691 views

nginx permission issue serving static file - RedHat 7 SELinux issue

This is a new installation which I followed the passenger+nginx guide. This will eventually be a rails site, but for now I am trying to get static files to serve, and am unable to figure out the ...
0
votes
1answer
61 views

Passenger Standalone Throws Nginx 404

I have a script that starts a passenger standalone server for my rails app on boot. When I run this script from the command line it works as expected. However when its run by rc.local or crontab it ...
3
votes
4answers
165 views

how can we run multiple applications with different domain & port numbers in apache

I Have two applications running on my server with domains x.abc.com admin.x.abc.com x.abc.com is running on port 80 admin.x.abc.com is running on port 8080 I can able to access x.abc.com from ...
0
votes
0answers
1k views

403 Forbidden error on Ubuntu + Apache2 + Passenger Rails server

Just started a server on Linode, with Ubuntu 14, Apache and Passenger. Deployed a rails app with capistrano, configured and enabled the site, but it launchs a 403 error when attempting to access: ...
0
votes
0answers
66 views

My wordpress/MYSQL is consumming way too much memory, how do i act on it?

I have a Ubuntu server running apache + mysql + PHP +postgres + passenger Mysql is often crashing, putting wordpress out of service. I asked the question here : Wordpress + PHP+ apache +mysql, mysql ...
1
vote
1answer
332 views

Deploying Rails App on Elastic Beanstalk - Is WEBrick automatically replaced by passenger?

Quick Question: I develop a ruby on rails application on my laptop. Rails has WEBrick installed as an out of the box APPLICATION server. I deploy my app on amazon web services elastic beanstalk. I ...
1
vote
0answers
4k views

Nginx Using KiB of shared memory for push module in

I'm setup nginx with passenger on a ubuntu 14.04 and the nginx is throwing 403 Forbidden error I checked the permissions and it is all ok. I checked the nginx conf and it seems ok user root; ...
1
vote
1answer
126 views

Rails + Passenger + Nignx + Modules

I try to install Rails + Passenger + Nginx + Modules but I got an error when installer start compiling Nginx: sh ./configure --prefix='/opt/nginx' --with-http_ssl_module --with-...
0
votes
1answer
538 views

Pointing Custom Domain to Server on Nginx

I have my server up and running on an Azure Ubuntu 14.04 virtual machine. It is working great. Now I want to point my custom domain to it so that users can visit my website by going to www.example.com ...
0
votes
0answers
120 views

How to stop NGINX spawning new instances

So a bit of background, I'm running a little web app using just in-memory data. It's about 20 rows all-in so I've removed the database to speed things up. Just recently I deployed it on a Raspberry ...
0
votes
0answers
47 views

Conditionally change url/host header being passed to passenger based app on nginx

I have a Sinatra app running with nginx/passenger. In particular occasions I want to change the url Sinatra receives to a mapped variable. I saw passenger_set_header, but it seems to throw an error in ...
0
votes
1answer
158 views

nginx not passing any requests to rails 2.3 via passenger

I'm upgrading to a new linode with Debian. I installed rvm, ruby enterprise edition, passenger, nginx (via passenger), rails 2.3 lts. My app works with script/server. I got nginx to serve static files....