Page 1 of 1

Handling PHP & JSP page requests

PostPosted: 19. March 2013 05:53
by rahool
I have two web applications installed on my server (windows server 2008 R2 ). 1 is developed in PHP mysql & other in JSP. I have installed xampp with apache & tomcat. PHP application is hosted with apache & JSP application with Tomcat. Apache is working on port 80 & Tomcat on port 8080. I want both of them to listen on port 80 through mod_jk connector. I tried but with no success all tutorials have separate config files & in latest version of xampp I am not able to find workers.properties & mod_jk.conf files as well. Though mod_jk.so is installed.

Re: Handling PHP & JSP page requests

PostPosted: 19. March 2013 06:01
by Altrea
rahool wrote:I want both of them to listen on port 80 through mod_jk connector. I tried but with no success all tutorials have separate config files & in latest version of xampp I am not able to find workers.properties & mod_jk.conf files as well. Though mod_jk.so is installed.

Don't use mod_jk, use mod_proxy_ajp, which comes already included in the latest XAMPP release.
You can find a prepared configuration file for this in \xampp\apache\conf\extra\xampp-ajp.conf

Re: Handling PHP & JSP page requests

PostPosted: 19. March 2013 08:12
by rahool
hi altrea, thanks for quick reply . Mod_proxy_ajp is redirecting to JSP application without revealing the port no. but it is showing me the actual code on that page. However when i write the full URL e.g http://localhost:8080/app the application is working. What might be the problem?

Re: Handling PHP & JSP page requests

PostPosted: 19. March 2013 10:00
by rahool
Got it!!!... alias name should be same as ROOT folder(to which u want to redirect) .... Thanks for your help :)