Combining DocumentRoot and proxypass in Apache Web server
Posted
by
user10211
on Server Fault
See other posts from Server Fault
or by user10211
Published on 2012-10-04T21:39:03Z
Indexed on
2012/10/04
21:40 UTC
Read the original article
Hit count: 257
I have an application running on tomcat and fronted with Apache. My server name is www.abc.com so in my vHost setting I have
DocumentRoot /home/user/www.abc.com
ServeName www.abc.com
ProxyPass /app http://localhost:8080/app
ProxyPassReverse /app http://localhost:8080/app
The DocumentRoot has a static file index.html, which I would like to serve when www.abc.com is requested and all other requests should be directed to tomcat via the proxypass. Which is the easiest way to achieve this?
Thanks
© Server Fault or respective owner