Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

This is how I have setup my environment, atm. An apache2 instance on port 80. Jetty instance on the same server, on port 8090.


  • When I visit, I should see the webapp, which is hosted on jetty, port 8090.

  • If I put, I should see the wordpress blog, which is hosted on apache. (I read howtos on the web, and installed it using AMP.)

Below are my various configuration files:


ProxyPass /   << this is the jetty server

ProxyPass /blog

ProxyRequests On
ProxyVia On

<Proxy *>
 Order deny,allow
 Allow from all

ProxyPreserveHost On

ProxyStatus On


LoadModule proxy_module /usr/lib/apache2/modules/
LoadModule proxy_balancer_module /usr/lib/apache2/modules/
LoadModule proxy_http_module /usr/lib/apache2/modules/
LoadModule proxy_ajp_module /usr/lib/apache2/modules/

I have not created any other files, in sites-available or sites-enabled.

Current situation:

  • If I goto, I see the webapp.
  • If I goto, I see a


Problem accessing /errors/404.html. Reason:

NOT_FOUND powered by jetty://

  • If I comment out the first ProxyPass line, then on, I only see the homepage, without CSS applied, ie, only text..
  • .. and going to gives me a this error:

The proxy server received an invalid response from an upstream server.

The proxy server could not handle the request GET /blog.

Reason: Error reading from remote server

  • I also cannot access /phpmyadmin, giving the same 404 NOT_FOUND error as above.

I am running Debian squeeze on an Amazon EC2 Instance.

Question: Where am I going wrong? What changes should I make in the proxy.conf (or another conf files) to be able to visit the blog?

share|improve this question
up vote 1 down vote accepted

If I understand correctly you need to replace this line

ProxyPass /blog

with this line

ProxyPass /blog/ !

This instructs the apache2 server to not to proxy anything that starts with /blog which is I think is what your want.

UPDATE: The official docs is here:

share|improve this answer
1. That doesnt work. It still forwards it to jetty. 2. Do u have any list or website, where I can see various types of proxypass – theTuxRacer Jan 4 '11 at 5:45
EDIT: I changed the order of the ProxyPass, and put the / at the end. Now it works. I guess it would just pass through. Thanks for the answer, I had lost all hope, people like you keep the love alive! Happy new year :) – theTuxRacer Jan 4 '11 at 5:54
Thanks, you are welcome. Fixed I updated my answer accordingly. – cstamas Jan 8 '11 at 22:42

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.