Re: How do I redirect all tomcat ports to use SSL?

2005-05-09 Thread Donny R Rota
Thanks!
I found another option that implicitely does it in the web.xml file:

Adding this in between the security constraints forces all port 80 
requests through 443 automatically.

   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint

...Don...
--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 



Bob Feretich [EMAIL PROTECTED] 
05/05/2005 05:08 PM

To
Donny R Rota/Lexington/[EMAIL PROTECTED], tomcat-user@jakarta.apache.org
cc

Subject
Re: How do I redirect all tomcat ports to use SSL?






The below security-constraint will make Tomcat require the use of SSL.
To have Tomcat automaitcally redirect for SSL, you must code

redirectPort=443

as part of your port=80 connector definition in the server.xml file.

Regards,
Bob Feretich

 Subject:
 Re: How do I redirect all tomcat ports to use SSL?
 From:
 Fabian Pena [EMAIL PROTECTED]
 Date:
 Thu, 05 May 2005 14:20:28 -0300
 To:
 Tomcat Users List tomcat-user@jakarta.apache.org
 
 This is an example
 
 security-constraint
 web-resource-collection
   web-resource-namesecurePages/web-resource-name
   url-pattern/index.jsp/url-pattern
   http-methodGET/http-method
   http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
   role-name*/role-name
 /auth-constraint
 user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
   /security-constraint
 
 Fabian
 http://www.manentiasoftware.com
 
 Donny R Rota wrote:
 Thanks, I use security-constraints now, and I've been looking for this 
answer for weeks.
 I've not found that option available.  Can you send me an URL to this?
 In the mean time, I'm going to see if I can find that option in my other 
sources.
 thanks!
 ...Don...
 
 --
 Don Rota, CTG Operations
 Rational Software, IBM Software Group
 20 Maguire Road, Lexington, MA 02421-3104 Tel: 781 676 2655, Fax: 781 
676 7645 [EMAIL PROTECTED]
 
 
 Fabian Pena [EMAIL PROTECTED] 05/04/2005 04:51 PM
 Please respond to
 Tomcat Users List
 
 
 To
 Tomcat Users List tomcat-user@jakarta.apache.org
 cc
 
 Subject
 Re: How do I redirect all tomcat ports to use SSL?
 
 
 
 
 
 
 In a web application, you can edit your web.xml file and add a 
security-constraint to redirect all application requests to SSL.
 
 I Hope this help
 
 Fabian
 
 Donny R Rota wrote:
 
 This weeks puzzler  8^)
 
 I want all my Tomcat requests to go through SSL.
 I setup tomcat, and got port 80 and port 443 (SSL) working.
 But I cannot redirect port 80 to 443.  I keep getting refused:
 
 Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
 I know you can do it the other way around 8443 - 80.
 I'm just running standalone Tomcat, no Apache.
 
 
 advTHANKSance!
 ...Don...
 
 --
 Don Rota, CTG Operations
 Rational Software, IBM Software Group
 20 Maguire Road, Lexington, MA 02421-3104
 Tel: 781 676 2655, Fax: 781 676 7645
 [EMAIL PROTECTED]
 









Re: How do you get images to cache?

2005-05-09 Thread Donny R Rota
Thanks!  I was able to fix it by putting this in the 
Catalina/localhost/wiki.xml files directly:

   Valve className=org.apache.catalina.authenticator.FormAuthenticator
  disableProxyCaching=false /

--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 



Tim Funk [EMAIL PROTECTED] 
05/09/2005 02:05 PM
Please respond to
Tomcat Users List


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: How do you get images to cache?






Google search for various http headers to add to your response:
Expires, pragma, ...

You'll probably need a filter to  implement this.

-Tim


PAlvin wrote:

 Background: For my web pages, since they are dynamically generated, I
 want them NOT to be stored in browsers' caches.  No problem; I know 
 the tags 'n such to put in the pages so they don't cache.
 
 BUT, for my images, I DO want the images to cache in the browser's 
 cache to make the pages load quicker and to save Internet traffic.
 
 Question: How do I get the images to cache?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

2005-05-08 Thread Donny R Rota
I found the solution!  Posting here to save other people the problems I 
had in finding this:

Put this in your server.xml (or conf/Catatlina/localhost/*.xml) file:

   Valve className=org.apache.catalina.authenticator.FormAuthenticator
  disableProxyCaching=false /

--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 



Donny R Rota/Lexington/[EMAIL PROTECTED] 
05/06/2005 03:13 PM
Please respond to
Tomcat Users List


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Cannot download files with IE through tomcat.  SSL with no-cache problems?






On Apache Tomcat/5.0.28, I've got SLL installed, and  whenever I try to 
download a doc file I get:

Some files can harm your computer.  If the file information below
looks suspicious, or you do not fully trust the source, do not open or
save this file
File name:   x.doc
File type:Microsoft Word Document
From:yyy.ibm.com
Open   Save Cancel More Info

I click Open and then the folloing file download dialog comes up:

Internet Explorer cannot download .doc from y.ibm.com
Internet Explorer was not able to open this Internet Site.  The requested 
site is either unavailable or cannot be
found. Please try again later.
OK

Downloading works fine in FireFox.
Downloading works fine if I turn off SSL.
We have an apache server (full httpd server) inhouse where this type of 
SSL download works fine too.

Is there a SSL no-cache setting I have to put in server.xml or something?

Thanks

...Don...
--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 



Cannot download files with IE through tomcat. SSL with no-cache problems?

2005-05-06 Thread Donny R Rota
On Apache Tomcat/5.0.28, I've got SLL installed, and  whenever I try to 
download a doc file I get:

Some files can harm your computer.  If the file information below
looks suspicious, or you do not fully trust the source, do not open or
save this file
File name:   x.doc
File type:Microsoft Word Document
From:yyy.ibm.com
Open   Save Cancel More Info

I click Open and then the folloing file download dialog comes up:

Internet Explorer cannot download .doc from y.ibm.com
Internet Explorer was not able to open this Internet Site.  The requested 
site is either unavailable or cannot be
found. Please try again later.
OK

Downloading works fine in FireFox.
Downloading works fine if I turn off SSL.
We have an apache server (full httpd server) inhouse where this type of 
SSL download works fine too.

Is there a SSL no-cache setting I have to put in server.xml or something?

Thanks

...Don...
--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 


How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Donny R Rota

This weeks puzzler 8^)

I want all my Tomcat requests to go through SSL.
I setup tomcat, and got port 80 and port 443 (SSL) working.
But I cannot redirect port 80 to 443. I keep getting refused:

Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
I know you can do it the other way around 8443 -
80.
I'm just running standalone Tomcat, no Apache.


advTHANKSance!
...Don...

--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 

Re: How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Donny R Rota
Thanks, I use security-constraints now, and I've been looking for this 
answer for weeks.
I've not found that option available.  Can you send me an URL to this?
In the mean time, I'm going to see if I can find that option in my other 
sources.
thanks!
...Don...

--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 



Fabian Pena [EMAIL PROTECTED] 
05/04/2005 04:51 PM
Please respond to
Tomcat Users List


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: How do I redirect all tomcat ports to use SSL?






In a web application, you can edit your web.xml file and add a 
security-constraint to redirect all application requests to SSL.

I Hope this help

Fabian

Donny R Rota wrote:
 
 This weeks puzzler  8^)
 
 I want all my Tomcat requests to go through SSL.
 I setup tomcat, and got port 80 and port 443 (SSL) working.
 But I cannot redirect port 80 to 443.  I keep getting refused:
 
 Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
 I know you can do it the other way around 8443 - 80.
 I'm just running standalone Tomcat, no Apache.
 
 
 advTHANKSance!
 ...Don...
 
 --
 Don Rota, CTG Operations
 Rational Software, IBM Software Group
 20 Maguire Road, Lexington, MA 02421-3104
 Tel: 781 676 2655, Fax: 781 676 7645
 [EMAIL PROTECTED]
 
 
 
 
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 03/05/2005

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]