Three apps going through apache. How to configure apache httpd?

Posted by Chris F. on Server Fault See other posts from Server Fault or by Chris F.
Published on 2012-10-27T13:46:04Z Indexed on 2012/10/27 17:03 UTC
Read the original article Hit count: 258

Filed under:
|

I have a quick question but I've been struggling to find the best solution:

I have two java webapps and wordpress (php) that I need to serve through my Prod website:

  1. App #1 should be accessed when pointing to www.example.com/ (this would have other url too such as "www.example.com/book")
  2. App #2 should be accessed when pointing to www.example.com/manage
  3. Finally WordPress would be accessed at www.example.com/info

How can I configure apache to serve all these three instances at the same time?

So far I have and it's not quite working right. Any suggestions would be much appreciated!

Listen 8081
<VirtualHost *:8081>
  DocumentRoot /var/www/html
</VirtualHost>

ProxyPass /manage http://127.0.0.1:8080/manage
ProxyPassReverse /manage http://127.0.0.1:8080/manage

ProxyPass /info http://127.0.0.1:8081/info
ProxyPassReverse /info http://127.0.0.1:8081/info

ProxyPass / http://127.0.0.1:9000/
ProxyPassReverse / http://127.0.0.1:9000/

© Server Fault or respective owner

Related posts about apache2

Related posts about httpd.conf