After a bit of googling it turned out that this topic is not well described hence asking about it here.
What I have already: well setup & working system where:
Apache Tomcat
with main web-application is running on port 8080 and handling all requests likemycompany.com:8080/*
Apache HTTPD 2.4.7
running on port 80 with PHP module and handling requests to WordPress-based blog atmycompany.com/blog
What I successfully achieved:
- Adding
mod_jk
connector and havingApache HTTPD
routing all requests toTomcat
via 8009 port so that Tomcat is handling all requests likemycompany.com/*
What I would like to achieve:
Apache HTTPD
is intercepting all requests at port 80 and if url is/blog*
then PHP5 module is intercepting it, otherwise everything else is handled bymod_jk
connector i.e./blog* -> PHP5 Apache module -> WordPress blog
/* -> mod_jk -> Tomcat with web-application
Could you please advise if it's possible with minimum configuration of existing modules (without using modules like mod_rewrite
or any other)?
Could you please elaborate regarding possible security holes of PHP module with such configuration since I'm not experienced with it?
Thanks a lot in advance for any help!
StackExchange
site since it's not directly related toUbuntu
itself (though server OS is indeed Ubuntu Server)