LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to connect to database while redirecting apache to tomcat (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-connect-to-database-while-redirecting-apache-to-tomcat-4175433502/)

mlnm 10-22-2012 09:52 AM

Unable to connect to database while redirecting apache to tomcat
 
Hi,I have apache 2.2 and tomcat 7 servers on same rhel5 machine.I deployed a project in tomcat and created corresponding database on mysql server 5.5.Project successfully deployed on tomcat,able to see webpage and all the database working fine.I checked it through
http://localhost:8080/myapp
And then i redirected it to apache web server which holds my website like this :
ProxyPass / http://localhost:8080/myapp/
ProxyPassReverse / http://localhost:8080/myapp/


and it used to work for me earlier.
later unfortunately server restarted and since then its not working.
actually when i try to browse the website like this :
http://mywebsitename.com
it redirects upto SID(site ID) of the project ,but after that page doesn't open ,it says resource not available
Valid suggestions would be greatly appreciated.
Thankyou in advance....

acid_kewpie 10-23-2012 02:55 AM

there's really no way a mod_proxy redirect should have any way at all to influence the back end database connection. If it does, you've got some serious code issues. You need to work out if this is an apache / tomcat issue or a tomcat / mysql issue.

jsaravana87 10-23-2012 06:43 AM

You can integrate Tomcat Server with Apache using mod_jk(Tomcat Connector).


All times are GMT -5. The time now is 08:06 PM.