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

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/
share|improve this question
1  
Are these apps all served from the same server through apache? In that case, why not just do a couple of Aliases for /manage and /info ? – miono Oct 27 '12 at 16:35
1  
This is pretty trivial with nginx. Though, it would help a lot if you explain exactly what is "not quite working right." – Michael Hampton Oct 27 '12 at 17:19

migrated from webmasters.stackexchange.com Oct 27 '12 at 15:30

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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