passenger

Is there a way to change map.root to point to something other than '/'?

I have apache 2.2 with mod_rails running at http://localhost. I want to have my rails app at http://localhost/railsBlog. So, what I did was, I created a virtual host: ServerName localhost DocumentRoot /Library/WebServer/Documents RailsEnv development RailsBaseURI /railsBlog Now, since the URL is http://localhost/railsBlog, ...

Is a Slice 256 enough for Apache2 + Passenger hosting AT LEAST 4 Rails sites?

I've a Slice 256 with 4 Rails 1.2.6 sites running pretty decently on Lighttpd + FastCGI (Ubuntu Server 8.04 LTS upgraded from 6.06 LTS); although it's such and old configuration, it's proven reliable enough for my smallish websites. Now I'd like to upgrade some to Rails 2.x and I'm wondering if the same Slice 256 can take an Apache2 + P...

Apache/Rails/Passenger directory URLs that don't end in '/' fail to 404.

I'm using Apache with passenger to run a rails app. In my rails app, I have some static content in subdirectories of the public directory. Each subdirectory has an index.html in it. So, inside the public directory, I have a subdir called 'b' and inside it, is an index.html. So it's like this: /public/b/index.html I have links to th...

Why do I get a 404 error when I try to access my rails site using https?

My server is currently hosting a php site. This site uses ssl for certain pages already. Now I am transitioning over to rails, and all my new rails apps go into a subfolder. Passenger is setup and and my app works great. One problem, If i try to go to these pages using ssl, I get a 404 error. Apparently apache is looking for the literal ...

Direct "puts" in Rails, to Apache log

Hi, What's the configuration setting to get calls to puts to be written to the Apache log file? (Using Passenger to run Rails on Apache) Thanks ...

Rails/Passenger/Unknown Content Type

We have the following situation: We invoke a url which runs an action in a controller. The action is fairly long running - it builds a big string of XML, generates a PDF and is supposed to redirect when done. After 60 seconds or so, the browswer gets a 200, but with content type of "application/x-unknown-content-type" no body and no Re...

Passenger crash when trying to use https

Hello, I am using the ssl_requirements plugin on shared hosting account. This hosting provider uses Passenger to manage Rails. Everything works fine until I try to go to a page that requires ssl (enforced by adding the ssl_required filter). When this happens Passenger crashes and sends back a 500 error. The error reads: Passenger encou...

What's the difference between Rack and Passenger?

I'm trying to deploy a Sinatra app to Dreamhost and it says the following: Since DH supports Passenger, which in turn supports Rack-based ruby applications, DH does indeed support Sinatra. I'm having difficulty parsing that statement - what's the difference between Rack and Passenger (and why is Sinatra "Rack-based")? ...

How does Phusion Passenger reuse threads and processes?

I am setting up an Apache2 webserver running multiple Ruby on Rails web applications with Phusion Passenger. I know that Passenger spawns Ruby processes for handling requests. I have the following questions: If more than one request has to be handled at the same time, will Passenger spawn multiple processes or multiple (Ruby) threads? ...

Rails app randomly crashes with error "Premature end of script headers"

I am hosting a Ruby on Rails 2.0.2 application on DreamHost. It is on an Apache 2 server, running on top of Phusion Passenger. The application often returns a 500 error "Rails application failed to start properly", but at random times. It appears to happen when the application is under higher load, though I can't confirm this. It only ...

What URL should I give Google Maps API so it recognises the key created for a local Rails apps run with Passenger?

Hi, I've been working on a Google Maps based Rails app and it was working fine until I installed Phusion's Passenger and now Google Maps API won't recognise the API Key which I generated for http://localhost:3000. Now I'm running Passenger, the URL for my app is http://mygooglemapsapp.local. I've generated a Google Maps API key using ...

is mod_rails or Phusion Passenger finally the answer to Ruby on Rails Deployment?

I read from some books that Phusion Passenger is the answer to easy Ruby on Rails deployment. But my friend said that first there was Apache + bunch of Mongrels, and then lighttpd, and then nginx, and now Passenger, and it seems endless... he also said he uses dreamhost which uses Passenger, and sometimes he sees his request not being ...

Slow initial server startup when using Phusion Passenger and Rails

To jump on the band-wagon of Phusion Passenger we've setup a staging server for a small rails app to test things out. So far it has been very nice to use, it makes installing/configuring and deploying apps a breeze. The problem is the site we're using doesn't get hit very often and it seems to shut down the servers in the background. Me...

nginx rewrite not working (with passenger on Mac OS X)

I have nginx with rewriting working correctly on my server in production. But when I tried to set the same rule on my local development machine (mac) the rewrite doesn't seem to be working. I want "universitytutor.local" to redirect to "www.universitytutor.local" Here is the relevant part of my nginx.conf server{ listen 80;...

How to get Phusion Passenger, MySQL and Rails to play nicely in production

I've written a rails app that's been running fine for a while without a database. Now, I'm dropping the registration database into the mix. It's not working in production. Everything works fine, of course, on my Mac. Here's the production environment: - Ubuntu Hardy - Phusion Passenger - Rails 2.3.2 MySQL on the machine is running fin...

says if i develop a Ruby on Rails application using Rails 2.3.2, will that usually be compatible with Passenger on my hosting company?

says if i develop a Ruby on Rails application using Rails 2.3.2, will that usually be compatible with Passenger on my hosting company? If i ssh to my hosting company and type rails -v, i get 2.2.2... so looks like they might be using Rails 2.2.2. So if i develop a Rails app on my Macbook and ftp all files over there, will the Passenger...

How to monitor passenger / mod_rails processes?

Hi there, I searched the site already but couldn't find any suitable information. As there is always some expert around I'm sure one of guys knows exactly what I'm searching for :-) We're on a balanced system: Machine 1: HAProxy load balancer Machine 2 & 3: Apache mod_rails and (of course) our Rails applications Those were the d...

Running gem server in passenger

I'm running a few rails/rake apps in Apache/passenger and I want to add the documentation app served by gem server to these apps, so I can easily give it a special (sub)domain, like docs.example.org, so it's easily available for all members of our team and nobody has to start the server himself or remember port numbers (like 8808, the de...

apache permissions error

I have an Ubuntu Hardy slice with Passenger Phusion serving up a rails app. I am also using the sphinx full text seach with the thinking_sphinx plugin I can run this command from the terminal: sudo rake ts:index RAILS_ENV=production but if this command is in the capistrano deploy file : run "cd #{current_path}; rake thinking_sphinx:...

Apache 2 authentication error

Attempting to implement client authentication with an SSL cert, according to this HOWTO, I receive the following errors. Apache: Re-negotiation handshake failed: Not accepted by client!? Firefox: ssl_error_handshake_failure_alert I assume it is a configuration error, but have not been able to locate it. Additional info: Com...