| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-08-2013, 10:20 AM
|
#1
|
|
Member
Registered: Jun 2011
Posts: 93
Rep: 
|
apache not taking database from tomcat on redirect
Hi,i am trying to redirect apache to tomcat.I have web application in tomcat on 8080 and www.mydomain.com domain on apache (httpd) on 80.I redirected using mod_proxy like this
ProxyPass / http://localhost:8080/myapp/
ProxyPassReverse / http://localhost:8080/myapp/
On querying for http://www.mydomain.com ,im getting the login page of my webapplication but after entering credentials it gives 404 error.
But the webapplication working fine on tomcat http://localhost:8080/myapp
Detais:
Server : RHEL 5
Mysql : 5.5
Apache 2.2
Tomcat : 7.0.37
Valid suggestions would be greatly appreciated,
Thank you..
|
|
|
|
03-09-2013, 07:03 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,682
|
"http://localhost:8080/myapp" is NOT the same as "http://localhost:8080/myapp/". The trailing slash matters completely.
|
|
|
|
03-10-2013, 01:11 AM
|
#3
|
|
Member
Registered: Jun 2011
Posts: 93
Original Poster
Rep: 
|
Thank you for your response ,actually i have tried it without slash(/) but then even the login page was not showing ,just gave 404 error.After adding / the login page of web application is now showing.
The apache(httpd) log shows following error
Directory index forbidden by Options directive: /var/www/html/
|
|
|
|
03-10-2013, 05:38 AM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,682
|
if you're getting the apache 404 then you're not hitting the redirect at all. what's the actual config say?
|
|
|
|
03-10-2013, 11:09 PM
|
#5
|
|
Member
Registered: Jun 2011
Posts: 93
Original Poster
Rep: 
|
Actually my web application is deployed in tomcat and has a MySQL database in the back-end.So on redirection i am getting the login page which is static and not getting the website which takes database from MySQL. SeLinux is disabled.But when i redirect the other project in the same way it takes the database.i think ,if redirect is not happening i shouldn't get the login page also.And also another i am unable to understand is that ,when this project works on tomcat why cant it work on apache because i am just redirecting through a simple mod_proxy method.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:53 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|