473,811 Members | 2,540 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Apache to Tomcat forwarding not working properly

2 New Member
Hi,


I am facing some problem with Apache to Tomcat forwarding. I have Tomcat (6.0.18) behind Apache (2.2). I want to use ‘https’ for receiving request from the client. This request, when forwarded by Apache to Tomcat, will use ‘http’. My application’s name is ‘abc’, which is deployed in Tomcat’s webapps dir. Both Tomcat & Apache are on the same machine. There is one more requirement: When a user just types the IP, it should, by default, forward it to the application’s (abc) login page i.e., both the below mentioned URL’s should point to the same page.

https://IP/
http://IP:8080/abc

I added the following lines in the httpd.conf file:
-----------------------------------------------------
ProxyPass /abc http://IP:8080/abc/implement
ProxyPass / http://IP:8080/abc/implement
-----------------------------------------------------

Now there are two issues:
-----------------------------------------------------
1. When I try to use the https URL (https://IP/), it opens up the login page but the images are not visible. If I try the http one (http://IP:8080/abc/), then the page works fine.

I thought of using the blank (appearing so) image’s URL (https://IP/abc/abc/images/logo_login.gif >>> abc 2 times is not a typo; the deployed directory’s name is ‘abc’ & there is a dir named ‘abc’ inside ‘abc’) and see where it’s pointing to. When I tried accessing it, it too was pointing to the same login page where http://IP:8080/abc/ OR https://IP/ are pointing.

These are few results that might help you to understand my problem:
https://IP/ (No logo; only the login page)
https://IP/abc/abc/images/logo_login.gif (No logo; only the login page)
(I have also noticed that whatever I append in the https URL after https://IP/abc/ it takes me to the login page with no image)

http://IP:8080/abc/implement (Works perfectly. Login page with logo)
http://IP:8080/abc/implement/abc/images/logo_login.gif (Login page with logo. I had no idea what this would display but at least I did not imagine that it would display ‘login + image’)
http://IP:8080/abc/abc/images/logo_login.gif (Shows ONLY logo as it ideally should)


2. If we use IE6 to open https URL, then a warning box pops-up before the login page appears (without images). This behavior is absent in IE8.

The warning message states “line 56 Object expected”.
-----------------------------------------------------

Can anyone please guide me?


Regards,
GC
Attached Images
File Type: jpg Login page with blank image.JPG (9.5 KB, 208 views)
May 3 '10 #1
1 3156
Technext
2 New Member
Hi,


I am now able to see image as well on the login page. My new ProxyPass settings are:
------------------------------------------
ProxyPass /abc/abc/images http://IP:8080/abc/abc/images
ProxyPass /abc http://IP:8080/abc/implement
ProxyPass / http://IP:8080/abc/implement
------------------------------------------
Please don't get confused with the 2 abc mentioned above in thr URL; one is the deployed application's dir name and the following abc is a dir just inside it.

Now the problem I am facing is that when I try to access either 'https://IP' or 'https://IP/abc', I see some a yellow icon at the bottom left of my browser. On clicking it, it says
-------------------------------------------
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 4 May 2010 09:22:02 UTC
Message: Object expected
Line: 57
Char: 2
Code: 0
URI: https://IP/csa
-------------------------------------------
Also, when I enter inside the login page, I don't get a proper page; instead I see the actual code written on the browser's screen.

On the other hand, if I try the 'http' URL (http://IP:8080/abc/implement), everything works fine without any error message, anywhere. Looks like there is still some problem with my Apache to Tomcat communication.


Regards,
GC
May 6 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
6923
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
2
3188
by: mukhesh | last post by:
Could somebody tell me if Apache tomcat supports .NET. If so, Some sources to the info would be great. Mukhiya
4
2236
by: JNeko | last post by:
Hello all! I am starting to do a little reviewing of my JSP, but first I would like to get my servlet container working! Now, it's been a while sinced I configured and used Tomcat, so I used this site: http://www.coreservlets.com/Apache-Tomcat-Tutorial/ as a refresher. Seems to make sense, and my jdk packages have long been installed. After starting Tomcat, it seemed to be running smoothly. But when I check to see if there is a local host...
31
15387
by: ajos | last post by:
hi frnds, i have a form,which has 2 input text boxes, the values are entering the text boxes,when i leave the 2 text boxes blank and hit submit a java script gives the message that the 2 fields are blank.....the problem now is when i leave the text boxes blank the message appears...and when i click ok...then instead of showing me the page its giving me an exception--> type Exception report message description The server encountered an...
0
2228
by: rugman | last post by:
Hi. Let me immediately declare - I'm a designer/owner of a website written in jsp pages running under Apache Tomcat 5.5.25. I make simple changes to code but don't understand much about configuration. My site is a commercial site called http://www.orientalrugsonline.co.uk and hosted by a third party who use cPanel and automatically download latest versions of Tomcat and Apache. For about a week, several important bits of my site have...
0
2719
ak1dnar
by: ak1dnar | last post by:
Hi Guys, I am using a virtual private server which runs Linux OS in it. On the server Apache and Tomcat has installed and to the best of my knowledge mod_jk also installed and working perfectly. In other words Apache is on Port and 80 and Tomcat is on 8080. but when I type http://mydomain.com/MyWebContext/a_file_name.jsp I can see the jsp pages inside tomcat webapps Dir, and If I need to access my phpmyadmin app which is inside Apache doc...
1
3143
by: barunva | last post by:
Hi, We would like to know whether the Clustering and Load balancing features of Apache tomcat server are working across the Clusters or not. If it is working, is it possible to have the following setup across the Cluster, 1. Assume there is no NFS filesystem across cluster
1
3778
anurag275125
by: anurag275125 | last post by:
Hello all, I am trying to install Apache-tomcat-6.0.24 on Redhat Linux system. But I'm facing some problems. After unpacking the "apache-tomcat-6.0.24-src.tar.gz" file in /home/anurag folder. when I move to apache-tomcat-6.0.24-src/bin and try to start the server by running command: $ sh startup.sh it is giving the following errors: "Cannot find ./catalina.sh"
0
1167
xploreraj
by: xploreraj | last post by:
I can not run Apache Tomcat for servlets. Normal Java programs are running. I have installed the JDK (jdk1.6.0_18 & jre6) & Tomcat 5.5 properly. The port no. for Tomcat is 8080. I don't think any other application is using that port. I did the following: ->removed "invoker" comments in installdir\conf\web.xml. ->put my .class files in instaldir\webapps\ROOT\WEB-INF\classes. ->modified environment variables for JAVA_HOME (set to JDK...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10392
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5555
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4341
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.