Handling PHP & JSP page requests

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Handling PHP & JSP page requests

Postby rahool » 19. March 2013 05:53

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.
rahool
 
Posts: 3
Joined: 19. March 2013 05:44
Operating System: windows server 2008 R2

Re: Handling PHP & JSP page requests

Postby Altrea » 19. March 2013 06:01

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Handling PHP & JSP page requests

Postby rahool » 19. March 2013 08:12

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?
rahool
 
Posts: 3
Joined: 19. March 2013 05:44
Operating System: windows server 2008 R2

Re: Handling PHP & JSP page requests

Postby rahool » 19. March 2013 10:00

Got it!!!... alias name should be same as ROOT folder(to which u want to redirect) .... Thanks for your help :)
rahool
 
Posts: 3
Joined: 19. March 2013 05:44
Operating System: windows server 2008 R2


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 134 guests