Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 18756 invoked from network); 4 May 2010 06:36:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 May 2010 06:36:29 -0000 Received: (qmail 96674 invoked by uid 500); 4 May 2010 06:36:25 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 96579 invoked by uid 500); 4 May 2010 06:36:25 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 96567 invoked by uid 99); 4 May 2010 06:36:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 06:36:25 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ezra.taylor@gmail.com designates 209.85.222.185 as permitted sender) Received: from [209.85.222.185] (HELO mail-pz0-f185.google.com) (209.85.222.185) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 06:36:19 +0000 Received: by pzk15 with SMTP id 15so759598pzk.15 for ; Mon, 03 May 2010 23:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=z3a3sA2GYWLk3fh4dlyoBHwGKjORAorEKQJ3rIb3GBQ=; b=tlTIryAjR/soj7SZomMGon8QZUcWOgzp3UHrAcR/PNiUP3CHTSxrkyJ9R6NVTOtsrI d8w5IapH/8kHh6QmEBZIul5+Vl4P4ipxZkkcmUlIpq69m7FYoXWQ426mUVQVEqgsjYA8 AkncBWbDeOCP6h+J6PQ+FBx+uLVdjuo0F0zsY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=ocph4QDb5YJsXrtUkW7R+iBQtLZvwIRBRskZYN1ZUJn+goF41g/5AJPypCr9VovJi7 DwAtguLJy86R7ujNl6QjsTPbLnRQT/zWGdZus2Rx8d2yxz+WLWyOvdf2YeUIcWu+S2JF Wi+pB7kwgUklCfykpnohM9wg39DBdZOFmqa7M= Received: by 10.142.195.20 with SMTP id s20mr9802914wff.248.1272954959118; Mon, 03 May 2010 23:35:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.127.19 with HTTP; Mon, 3 May 2010 23:35:29 -0700 (PDT) In-Reply-To: References: <28436856.post@talk.nabble.com> From: Ezra Taylor Date: Tue, 4 May 2010 02:35:29 -0400 Message-ID: To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=000e0cd32bf227434c0485beec62 Subject: Re: [users@httpd] Apache to Tomcat forwarding not working properly --000e0cd32bf227434c0485beec62 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Igor: I think you have to create a proxypass entry for your images also. Something similar to the below entry. ProxyPass /images http://localhost/images On Mon, May 3, 2010 at 9:06 PM, Igor Cicimov wrote: > Post your server/vhost and https configuration please. > > > On Tue, May 4, 2010 at 1:57 AM, Gaurav Chhabra wrote= : > >> >> 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 =91https=92 for receiving re= quest >> from the client. This request, when forwarded by Apache to Tomcat, will >> use >> =91http=92. My application=92s name is =91abc=92, which is deployed in T= omcat=92s >> 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, forwa= rd >> it to the application=92s (abc) login page i.e., both the below mentione= d >> URL=92s 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=92s URL >> (https://IP/abc/abc/images/logo_login.gif >>> abc 2 times is not a typo; >> the >> deployed directory=92s name is =91abc=92 & there is a dir named =91abc= =92 inside >> =91abc=92) and see where it=92s 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 imagi= ne >> that it would display =91login + image=92) >> 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 th= e >> login page appears (without images). This behavior is absent in IE8. >> >> The warning message states =93line 56 Object expected=94. >> ----------------------------------------------------- >> >> Can anyone please guide me? >> >> >> Regards, >> GC >> -- >> View this message in context: >> http://old.nabble.com/Apache-to-Tomcat-forwarding-not-working-properly-t= p28436856p28436856.html >> Sent from the Apache HTTP Server - Users mailing list archive at >> Nabble.com. >> >> >> --------------------------------------------------------------------- >> The official User-To-User support forum of the Apache HTTP Server Projec= t. >> See for more info. >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >> " from the digest: users-digest-unsubscribe@httpd.apache.org >> For additional commands, e-mail: users-help@httpd.apache.org >> >> > --=20 Ezra Taylor --000e0cd32bf227434c0485beec62 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Igor:
=A0 =A0 =A0 =A0 =A0 =A0I think you have to create = a proxypass entry for your images also. =A0Something similar to the below e= ntry.


ProxyPass /images http://localhost/images

On Mon, May 3, 2010 at 9:06 PM, Igor Cicimov= <icicimov@gmail= .com> wrote:
Post your server/vhost and https configuration please.


On Tue, May 4, 2010 at 1:57 AM, Gaurav Chhabra <messa= gegc@gmail.com> wrote:

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 =91https=92 for receiving reque= st
from the client. This request, when forwarded by Apache to Tomcat, will use=
=91http=92. My application=92s name is =91abc=92, which is deployed in Tomc= at=92s
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<= br> it to the application=92s (abc) login page i.e., both the below mentioned URL=92s should point to the same page.

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

I added the following lines in the httpd.conf file:
-----------------------------------------------------
ProxyPass /abc h= ttp://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=92s URL
(htt= ps://IP/abc/abc/images/logo_login.gif >>> abc 2 times is not a= typo; the
deployed directory=92s name is =91abc=92 & there is a dir named =91abc= =92 inside
=91abc=92) and see where it=92s 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 th= e login page)
http= s://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/a= bc/implement (Works perfectly. Login page with logo)
http://IP:8080/abc/implement/abc/images/logo_login.gif (Log= in page with
logo. I had no idea what this would display but at least I did not imagine<= br> that it would display =91login + image=92)
= http://IP:8080/abc/abc/images/logo_login.gif (Shows ONLY logo as it ide= ally
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 =93line 56 Object expected=94.
-----------------------------------------------------

Can anyone please guide me?


Regards,
GC
--
View this message in context: http://old.nabble.com/Apache-to-Tomcat-forwarding-not-working-properl= y-tp28436856p28436856.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com= .


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.<= br> See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
=A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.= org
For additional commands, e-mail: users-help@httpd.apache.org





--
Ezra Taylor
--000e0cd32bf227434c0485beec62--