Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set up a mod_proxy - mongrel combination, but somehow, apache/mod_proxy is unable to access mongrel locally. The following is my configuration for mod_proxy:

ProxyRequests Off
ProxyPreserveHost On

<Location />
        ProxyPass http://localhost:3000/
        ProxyPassReverse http://localhost:3000/
        Order deny,allow
        Allow from all

Mongrel/Rails ist running just fine, because I can access it from my browser, and even with lynx on the server.

However, I get the following error when trying to use the proxy:

[error] [client] Invalid Content-Length

I would appreciate any help :D

PS: Oh, and the server is running Plesk to configure vhosts, if thats important.

share|improve this question
up vote 0 down vote accepted

I kind of solved the problem by starting the mongrel server with

mongrel_rails start -d

instead of

ruby script/server -d

Not sure what the actual problem was, just happy that its working now :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.