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

How can I setup apache forward ->

Where is the Apache server.

We have other services running like

service1. ->
service2. ->
service3. ->

(these services run on the same server as the apache)

Which works fine.

As mentioned in the beginning, I want to setup apache forwarding so that if I try to access then it should be forwarded to, where X = 1,2,3...

Where this customerX runs on other server.

My experience in setting this is limited and could someone guide me how to set this up

share|improve this question

I don't know what you mean by "forwarding", but the traditional method is to use a proxy to a jboss backend.

Read this to get you started:

share|improve this answer

I don't know much about Jboss, so I am uncertain if you can simply connect to AJP there. However in case you can't you can try and achieve that using mod_proxy. Should go like this

<IfModule mod_proxy.c>
   ProxyPass /host
   ProxyPassReverse /host

Keep track of the obligatory security measurements coming along with mod_proxy. You can place this snippet in a VirtualHost context for

If you can verify that you got AJP running on jboss (normally port 8009), you can use the same snippet replacing http:// with ajp:// adding :8009 to the URL.

<IfModule mod_proxy_ajp.c>
   ProxyPass /host ajp://
   ProxyPassReverse /host ajp://
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.