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++.

Filter by
Sorted by
Tagged with
1
vote
1answer
232 views

How to install nginx 1.18 with passenger 6 on AWS ubuntu 18.04

I'm trying to upgrade nginx from 1.14 to 1.18. Currently we use the passenger 6.0.5 with nginx 1.14. What I'm doing is starting new Ubuntu 18.04 instances. For some reason, the lastest nginx version ...
2
votes
1answer
480 views

deny rule is not filtering entirely

The following block location ~ /(wp-content|solr|jsonws|mifs|wp-includes|login.asp)/ { return 404; } is not processing en/blog/wp-includes/wlwmanifest.xml appropriately. The intent ...
1
vote
0answers
17 views

Shouldn't UFW configured Iptables deny access before the request reaches our Unbutu 16.04 hosted Nginx server?

We are using ufw to configure iptables. We have numerous rules denying access from ip addresses that use bots. Here is one example: sudo ufw deny from 0.1.0.0/0.1.255.255 These bots are attempting to ...
0
votes
1answer
74 views

Get rid of content ripping bots in a Rails 4 app served by Nginx using Passenger on Ubuntu 16.04

Our rails app is being inundated with requests from bots that are trolling using IP addresses. Every request results in an exception notification error message. Our original Nginx server block: server ...
2
votes
0answers
106 views

passenger-memory-stats works, but passenger-status does not (Passenger + Apache)

I have an application running on Passenger+Apache. (It's running fine.) When I run passenger-status, though, it gives ERROR: Phusion Passenger doesn't seem to be running. I've checked the Apache ...
0
votes
1answer
104 views

Apache to serve multiple ruby on rails applications from the same domain

I want to serve multiple different ruby on rails applications using Apache and Passenger via a single domain. The applications all should use the same certificate and I want to deliver the apps using ...
0
votes
1answer
205 views

How do you set PassengerFriendlyErrorPages in .htaccess? [closed]

I have a working server setup with Apache running with Phusion Passenger. Because the friendly error page turned off by default (good for production apps), it's hard to spot the error when it's happen....
1
vote
0answers
193 views

Error when starting redmine on Ubuntu

I've a Ubuntu server with redmine installed. I don't know the details because another guy installed everything and he doesn't work with us anymore. We performed a reboot of the server for maintenance, ...
0
votes
0answers
20 views

Rails Passenger random fail

We have an in house Rails app being moved to HyperV RHEL8 VM. The app generally works well. The issue is that randomly Apache loads the test page instead of offloading to passenger. passenger-status ...
0
votes
1answer
353 views

ubuntu 18.04, passenger ERROR: Phusion Passenger doesn't seem to be running

We just installed a new box with Ubuntu 18.04 with passenger and everything run fines, the site is up, but when we do passenger-status we get ERROR: Phusion Passenger doesn't seem to be running. ...
0
votes
1answer
74 views

any way to run passenger-status --show=requests without being root?

Periodically in production we get these ruby processes that hang up. I just discovered passenger-status --show=requests Which gives me exactly what I want. I want to write some code to build out ...
0
votes
1answer
48 views

Nginx + Passenger suburi location

Phusion Passenger has a sample configuration for deploying a Ruby app under a suburi here: https://www.phusionpassenger.com/library/deploy/nginx/deploy/ruby/ The config so you don't have to click: ...
0
votes
1answer
234 views

403 Forbidden with apache and passenger

I am getting sporadic 403 responses from a server running Passenger within Apache. The problem starts on seemingly random occasions, and ends randomly as well. From the log, it seems that Apache is ...
0
votes
0answers
259 views

how install libnginx-mod-http-passenger on xenial 16.04 : has no installation candidate

What I tried to install my nginx + passenger for rails app : (works fine for debian stretch on my other server) sudo nano /etc/apt/sources.list.d/nginx.list => deb http://nginx.org/packages/...
0
votes
1answer
285 views

Nginx + Passenger: Cache 404 urls

Context I have a Rails app with a nginx server and Passenger. The app is dynamically generating pages based from the request url: if the url exists in the database the app renders the corresponding ...
0
votes
1answer
42 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
112 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
99 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
2answers
4k 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-...
2
votes
1answer
9k 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
118 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
72 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 ...
3
votes
1answer
6k 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: &...
1
vote
0answers
182 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
858 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
495 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 ...
3
votes
1answer
594 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
131 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
383 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
1k 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
120 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
64 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
104 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
478 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
49 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
362 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
112 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
448 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
122 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
617 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
934 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
1answer
355 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
2k 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
441 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
79 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
2k 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
1k 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
83 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
169 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: ...

1
2 3 4 5
10