LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-18-2012, 05:48 PM   #1
mlnm
Member
 
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 : 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.
 
Old 07-19-2012, 10:49 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,220
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
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
 
  


Reply


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 10:41 AM
Redirecting Apache/Tomcat Logs to rsyslog without writing to disk.... elorson Linux - Software 1 05-29-2011 12:56 AM
how to connect to mysql database using php in Apache on Ubuntu communication Linux - Newbie 4 06-02-2010 04:50 AM
Cannot connect to mysql database using php in Apache on Centos 5.1 OS homyangcha Linux - Newbie 1 06-30-2008 09:18 AM
TOMCAT connect to MS SQL database shane200_ SUSE / openSUSE 1 06-01-2005 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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