RE: Apache SSL + mod_jk

2006-12-18 Thread Bijan Vakili
Hi Rainer,

The proxy attributes, as you mentioned, were all I needed.

Thanks so much!

 
Bijan Vakili
Senior Software Developer
 
Cryptologic Inc. 
55 St-Clair W, 3rd floor, Toronto, Ontario, M4V 2Y7
Phone 416.545-1455 Ext 5892
E-Mail: [EMAIL PROTECTED]
SKYPE: bijanvakili 

This message, including any attachments, is confidential and/or
privileged and contains information intended only for the person(s)
named above. Any other distribution, copying or disclosure is strictly
prohibited. If you are not the intended recipient or have received this
message in error, please notify us immediately by reply email and
permanently delete the original transmission from all of your systems
and hard drives, including any attachments, without making a copy.
-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 16, 2006 7:59 AM
To: Tomcat Users List
Subject: Re: Apache SSL + mod_jk

Hi,

there are plenty of ways, how those links could be produced. Usually it
works well with mod_jk, because mod_jk carries forward the information,
if the original protocol was http or https. So request.getScheme()
should return the right protocol prefix. The solution of your problem
will depend on the knowledge of which component actually produces the
absolute links.

The story is different, if you connect an ssl offfloading reverse proxy
via HTTP (in contrast to AJP/13). Then you need to configure the proxy
attributes of the incoming tomcat http connector.

Regards,

Rainer

Bijan Vakili schrieb:
 Hi,
 
  
 
 I've been trying to get mod_jk to work where
 
 1)   Users connect to the Apache server via HTTPS
 
 2)   All requests are proxied to Tomcat via mod_jk using AJP1.3
 
  
 
 I have been able to get this to work with HTTP.  However, when I
switch
 to using HTTPS, the HTML content returned by Tomcat through mod_jk
 always contains HTTP (hence there will be broken links everywhere). 
 
  
 
 Does anyone know how to get this to work?  Is there a sample
 configuration I can look at that would do the same thing?
 
  
 
  
 
 Thanks in advance,
 
  
 
  
 
 Bijan Vakili
 
 Senior Software Developer
 
  
 
 Cryptologic Inc. 
 
 55 St-Clair W, 3rd floor, Toronto, Ontario, M4V 2Y7
 Phone 416.545-1455 Ext 5892
 E-Mail: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
 
 SKYPE: bijanvakili 
 
 This message, including any attachments, is confidential and/or
 privileged and contains information intended only for the person(s)
 named above. Any other distribution, copying or disclosure is strictly
 prohibited. If you are not the intended recipient or have received
this
 message in error, please notify us immediately by reply email and
 permanently delete the original transmission from all of your systems
 and hard drives, including any attachments, without making a copy.
 
  
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache SSL + mod_jk

2006-12-16 Thread Rainer Jung
Hi,

there are plenty of ways, how those links could be produced. Usually it
works well with mod_jk, because mod_jk carries forward the information,
if the original protocol was http or https. So request.getScheme()
should return the right protocol prefix. The solution of your problem
will depend on the knowledge of which component actually produces the
absolute links.

The story is different, if you connect an ssl offfloading reverse proxy
via HTTP (in contrast to AJP/13). Then you need to configure the proxy
attributes of the incoming tomcat http connector.

Regards,

Rainer

Bijan Vakili schrieb:
 Hi,
 
  
 
 I've been trying to get mod_jk to work where
 
 1)   Users connect to the Apache server via HTTPS
 
 2)   All requests are proxied to Tomcat via mod_jk using AJP1.3
 
  
 
 I have been able to get this to work with HTTP.  However, when I switch
 to using HTTPS, the HTML content returned by Tomcat through mod_jk
 always contains HTTP (hence there will be broken links everywhere). 
 
  
 
 Does anyone know how to get this to work?  Is there a sample
 configuration I can look at that would do the same thing?
 
  
 
  
 
 Thanks in advance,
 
  
 
  
 
 Bijan Vakili
 
 Senior Software Developer
 
  
 
 Cryptologic Inc. 
 
 55 St-Clair W, 3rd floor, Toronto, Ontario, M4V 2Y7
 Phone 416.545-1455 Ext 5892
 E-Mail: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
 
 SKYPE: bijanvakili 
 
 This message, including any attachments, is confidential and/or
 privileged and contains information intended only for the person(s)
 named above. Any other distribution, copying or disclosure is strictly
 prohibited. If you are not the intended recipient or have received this
 message in error, please notify us immediately by reply email and
 permanently delete the original transmission from all of your systems
 and hard drives, including any attachments, without making a copy.
 
  
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache SSL + mod_jk

2006-12-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bijan,

Bijan Vakili wrote:
 I've been trying to get mod_jk to work where
 
 1)   Users connect to the Apache server via HTTPS
 2)   All requests are proxied to Tomcat via mod_jk using AJP1.3
 
 I have been able to get this to work with HTTP.  However, when I switch
 to using HTTPS, the HTML content returned by Tomcat through mod_jk
 always contains HTTP (hence there will be broken links everywhere). 

Then you are probably having your presentation layer generate links
using http instead of https. What are you using to build your pages?

You will have to take into account the protocol of your URLs when
generating links.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhFdf9CaO5/Lv0PARAnI3AKCVfW48B+qmey//aULcXqanzLz06wCeIaiZ
fYOq2qWoQbNHpsIE9ZBb3eQ=
=UijE
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]