9 votes
Accepted

Apache Passenger Resolve Symlinks stopped working | Invalid command

I have managed to resolve the issue PassengerResolveSymlinksInDocumentRoot This option has been removed in 5.2.0 version according to https://blog.phusion.nl/2018/01/29/passenger-5-2-0/ So there ...
user avatar
7 votes
Accepted

Why does passenger-install-nginx-module neither install Nginx nor implement Passenger support on Centos7 while the output indicates the contrary?

I am the Phusion Passenger author. You are misunderstanding something fundamentally about Nginx. First of all, Nginx does not support dynamically loadable modules. This means that the only way to ...
user avatar
  • 2,112
7 votes

Apache+Passenger not serving the root of the Sinatra application

Apparently there is a bug in Apache 2.4.17. Disabling the module auto index (which is the cause of the wrong behaviour, will prevent the error. #LoadModule autoindex_module modules/mod_autoindex.so ...
user avatar
  • 1,414
6 votes
Accepted

Elastic Beanstalk with Passenger Standalone: working configuration?

I was having the same issue and after some digging I found that the version of passenger Amazon was using on 64bit Amazon Linux 2015.03 v2.0.0 is Passenger 4.0.59. If you just have gem "...
user avatar
5 votes
Accepted

Creating a stable, auto-scaling app server cluster

I'm not quite sure what your actual questions are. Your overall question is fairly vague. You have three main questions here from what I can gather: Where should I start to get my own scalable PaaS ...
user avatar
  • 4,111
5 votes

Firefox and Chrome keeps forcing HTTPS on Rails app using nginx/Passenger

I found a way to turn off HSTS from an answer on a Wordpress support forum of all of places: https://wordpress.org/support/topic/want-to-turn-off-http-strict-transport-security-hsts-header#post-...
user avatar
4 votes

Elastic Beanstalk Rails - Modify passenger config passenger_max_pool_size

I realize that this is an old post, however it is unanswered. Best option is to use .ebextensions dir in the root of your project, and add a config file to configure passenger. I've created an ....
user avatar
4 votes

Cannot checkout session because a spawning error occurred

Found the problem. I'm not using RVM /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby: In my /etc/nginx/nginx.conf I had passenger_ruby /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby; But I needed to have: ...
user avatar
3 votes
Accepted

Changes on Puppetmaster not always immediately recognized by Puppet-agents

This is likely a problem with caching of the environments - by default in 3.7, data from an environment on the filesystem will be cached for 3 minutes, so changes are not visible to the agent nodes ...
user avatar
3 votes

Out-of-order chef recipes causing apt package install to fail

This is probably coming about since the nginx cookbook modifies the /etc/nginx/nginx.conf file after it has been installed by apt, and the dpkg command is warning you about that change. This will also ...
user avatar
  • 2,152
3 votes

puppet master REST API returns 403 when running under passenger works when master runs from command line

This symptom will crop up if you are used to using Puppet under Nginx/Passenger and you upgrade to passenger 5.0+. I found the solution here. Passenger 5.0 has replaced "passenger_set_cgi_param" ...
user avatar
  • 61
3 votes

How to change the temporary upload directory nginx/passenger?

If possible at all, you should definitely use Reza's answer and use the 'upload' module. However, if you use nginx as a reverse proxy with a backend on a different machine, that module won't ...
user avatar
  • 151
3 votes
Accepted

Pointing Custom Domain to Server on Nginx

Your server_name needs to match the CNAME record you created, not the target of the CNAME.
user avatar
  • 108k
3 votes
Accepted

Why is my request queueing time so high?

200ms doesn't seem that terrible. The 'request queuing' metric is the measure of time between your web server logs the request and the moment the New Relic agent loads (after before_filters). The ...
user avatar
2 votes

What's the best strategy for log rotation with apache+passenger+ruby-on-rails+mysql?

Instead of 'copytruncate', these lines worked for me in the logrotate file for my rails app: postrotate touch /your-rails-directory/tmp/restart.txt endscript
user avatar
  • 121
2 votes
Accepted

How to tell how Apache might be broken and preventing the ruby passenger module from installing

Your Apache configuration is broken. Specifically you have a file /etc/apache2/pf.conf which is trying to use directives provided by Phusion Passenger, which you haven't yet installed! Move this ...
user avatar
2 votes
Accepted

ProxyPass in nginx

The operation of proxy_pass is explained in nginx documentation: http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass A request URI is passed to the server as follows: If the ...
user avatar
2 votes
Accepted

nginx proxy pass / rewrite with multiple locations to passenger app and php-fpm

Use alias instead of root. For example alias /path/to/ldap. The problem with root directive is that the path after location directive is appended to the end of root directive path. For example, in ...
user avatar
2 votes

Customer Passenger Error Pages

In newer versions of Phusion Passenger, set the following within your Apache virtual host: PassengerErrorOverride on ErrorDocument 500 /path/to/500.html
user avatar
  • 782
2 votes
Accepted

nginx is not defining $scheme

This issue here is that I was setting the environment variable as well as the header. Removing this line fixed this: passenger_env_var HTTP_X_FORWARDED_PROTO $scheme; This is caused by the fact that ...
user avatar
  • 201
2 votes
Accepted

How do you restart logging after deleting an NGINX log?

This question was correctly answered on stackoverflow by one of the authors of Passenger. Here's a copy of his answer. Restarting Nginx would actually make the log file come back. It's just that you'...
user avatar
2 votes

Looking for some useful resources to find out site and server downtime reasons

A good monitoring setup will need to distinguish between connectivity problems and server issues, even though from an end-user perspective the result is the same: a site that is down. Because there ...
user avatar
  • 71.4k
2 votes
Accepted

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

I doubt you're still having this issue, but it shows high on a G-search so, the problem I found on Ubuntu 18.04 with Apache and Passenger v5+ is to do with the systemd setup of Apache: The 'tmp' ...
user avatar
  • 36
2 votes
Accepted

deny rule is not filtering entirely

This is a guess, but in the config, passenger_enabled on; is on the server level. It is possible that this captures the requests. Try removing the line from server level and add: location / { ...
user avatar
1 vote
Accepted

No space left on device error

You have to explore your HDD and clean up outdated and/or unused files. The easiest way is to stop all the services like postgres/apache/postfix etc (to prevent data loss) and dig into directory ...
user avatar
  • 6,834
1 vote

Starting Rails App with Phusion Passenger Standalone?

You have to make a config.ru file with following content to use passenger5 with rails 2.3 apps # Require your environment file to bootstrap Rails require ::File.dirname(__FILE__) + '/config/...
user avatar
  • 111
1 vote
Accepted

Starting Rails App with Phusion Passenger Standalone?

My problem turned out to be the passenger gem passenger (5.0.2) released just yesterday (March 7, 2015). This explains why I couldn't find anyone with my specific problem. I solved this and ...
user avatar
  • 782
1 vote
Accepted

Puppet Dashboard giving "The environment must be purely alphanumeric" error under Passenger

You have server-scoped settings in the top of each of those files, when they should only apply to the virtual host that they're relevant to. Specifically, you'll need to move PassengerAppRoot /usr/...
user avatar
1 vote
Accepted

Website keeps asking to download ruby file?

Typically, when your browser offers you a file for download, that means that webserver doesn't recognize file as dynamic content. It's same with php/python/ruby... For start keep it simple. Choose ...
user avatar
  • 5,147
1 vote

Striving to make a RoR app (passenger, nginx) work on EC2

Some Answers: No. Only specify root at the start of your server { block, check out Nginx Pitfalls I'm pretty sure it's the commented section in your nginx.conf: #passenger_root /usr; #...
user avatar
  • 148

Only top scored, non community-wiki answers of a minimum length are eligible