LinuxQuestions.org

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

mlnm 07-18-2012 04:48 PM

cannot connect to mysql database while redirecting apache to tomcat
 
Hi friends,i deployed a web application in tomcat and set a mysql database for it.And later i redirected apache to tomcat using http_proxy.Now when i im able to connect to my webapp through tomcat on 8080 port like this: http://localhost:8080/myapp
but when i try querying it with my website name like this : http://mysite.com,it opens upto site id and then it shows no resource error.I redirected it like this:
PassProxy / http://localhost;8080/myapp/
PassProxyRevesrse / http://localhost:8080/myapp/
details:
os: rhel5,
tomcat ver:7
jdk 7
apache 2.2.3
mysql 5.5
any help would be greatly appreciated.

bathory 07-19-2012 09:49 AM

Hi,

Does you application work when accessed directly from tomcat: http://localhost:8080/myapp
Apache reverse proxy has nothing to do with the way your webapp connects to the mysql server, but you can take a look at tomcat's and maybe apache logs to see if you find anything

Regards


All times are GMT -5. The time now is 02:44 PM.