Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-18-2012, 04:48 PM   #1
Registered: Jun 2011
Posts: 96

Rep: Reputation: Disabled
Smile 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 :,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/
os: rhel5,
tomcat ver:7
jdk 7
apache 2.2.3
mysql 5.5
any help would be greatly appreciated.
Old 07-19-2012, 09:49 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,478

Rep: Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480

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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting Apache website to Tomcat mlnm Linux - Newbie 2 05-30-2012 09:41 AM
Redirecting Apache/Tomcat Logs to rsyslog without writing to disk.... elorson Linux - Software 1 05-28-2011 11:56 PM
how to connect to mysql database using php in Apache on Ubuntu communication Linux - Newbie 4 06-02-2010 03:50 AM
Cannot connect to mysql database using php in Apache on Centos 5.1 OS homyangcha Linux - Newbie 1 06-30-2008 08:18 AM
TOMCAT connect to MS SQL database shane200_ SUSE / openSUSE 1 06-01-2005 01:41 PM

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration