Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a server that is running Apache and Tomcat.

Apache functions as:

  • reverse proxy for Tomcat
  • serve static files

Tomcat:

  • serve dynamic content

Apache is serving static files from:

  • /var/www/upload
  • /var/www/images

Tomcat is running on port 8080

I have it working now as following:

http://www.domainname.com/app >>> proxypass/proxyreversepass >>> http://localhost:8080/app/
http://www.domainname.com/upload >>> /var/www/upload

What I want to do is: www.domainname.com redirect to Tomcat while still have www.domainname.com/upload and hwww.domainname.com/images served by Apache.

What is the best way to do this? Have a redirect rule? Or work with entries like "ProxyPass /upload !"?

share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.