File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

avoid the mixed-content warning over ssl

 
Dave Bosky
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using an Apache 2/Tomcat 5.5/SSL setup and keep receiving mixed-content warnings from IE. Apache is serving the static content like images, styles, etc. and Tomcat is serving the servlet/jsp's.

Every page I access popups the mixed content warning.

Can I modify a Tomcat or Apache conf file to eliminate this problem???


Thanks,
Dave
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These messages are generated by the browser, not Tomcat or Apache HTTPD.

The way to eliminate them is to insure that ALL resources (images, iframes, etc..) linked from secure pages are called through SSL.

Relative links will do this automatically.

Also, with MSIE if you have an src or href attribute in an image or iframe tag with a blank value, this message will show up. To fix this I aim all empty iframes and images to a "blank.html" page.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic