John Henderson
2007-Jan-24 21:36 UTC
ssl - browser warning on IE - page contains both secure a
hi, i''ve installed my SSL certificate on my server and updated my lighttpd conf file. using Safari, when i browse to https://mysite.com the site appears in an encrypted window. with IE6 I get a warning message - this page contains both secure and non secure items. do you want to display the non-secure items?". the page is fully displayed and nothing appears to be missing. all subsequent pages appear ok. i only get the warning message again when i return to my home page. any ideas what might be wrong? -john -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ed Hickey
2007-Jan-24 21:37 UTC
Re: ssl - browser warning on IE - page contains both secure a
do a view-source and make sure you''re not linking to any files on the http:// protocol. like JS, CSS or image files. ed On 1/24/07, John Henderson <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > hi, > > i''ve installed my SSL certificate on my server and updated my lighttpd > conf file. > > using Safari, when i browse to https://mysite.com the site appears in an > encrypted window. > > with IE6 I get a warning message - this page contains both secure and > non secure items. do you want to display the non-secure items?". > > the page is fully displayed and nothing appears to be missing. all > subsequent pages appear ok. > > i only get the warning message again when i return to my home page. > > any ideas what might be wrong? > > > -john > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
John Henderson
2007-Jan-24 22:02 UTC
Re: ssl - browser warning on IE - page contains both secure
Ed Hickey wrote:> do a view-source and make sure you''re not linking to any files on the > http:// protocol. like JS, CSS or image files. > > edcheers ed, it was my google analytics link. it had been: <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-xxxxxx-1"; urchinTracker(); </script> so i changed the first line to https:// now IE complains that my SSL certificate is valid but does not match the name of the site - google.com so presumably i need to leave the home page (a login page) with my google urchin on http and secure only those pages after login. how to move from http: on page 1 to force https: on subsequent pages is the subject of seperate post thanks for your help -john -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeff Barczewski
2007-Jan-24 22:41 UTC
Re: ssl - browser warning on IE - page contains both secure
On 1/24/07, John Henderson <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Ed Hickey wrote: > > do a view-source and make sure you''re not linking to any files on the > > http:// protocol. like JS, CSS or image files. > > > > ed > > cheers ed, > > it was my google analytics link. it had been: > > <script src="http://www.google-analytics.com/urchin.js" > type="text/javascript"> > </script> > <script type="text/javascript"> > _uacct = "UA-xxxxxx-1"; > urchinTracker(); > </script> > > > so i changed the first line to https:// > > now IE complains that my SSL certificate is valid but does not match the > name of the site - google.com > so presumably i need to leave the home page (a login page) with my > google urchin on http and secure only those pages after login. how to > move from http: on page 1 to force https: on subsequent pages is the > subject of seperate post > > > thanks for your help > > -john >I ran into the same issue after adding Google anaytics to my pages. What I ended up doing was to use and if statement in the view to only output the google analytics for pages that I want to allow it (which are most my unsecure pages). That can be as simple as <%= if @allow_google_analytics %> google stuff here <% end -%> and then in your controller just put a before_filter to call a method to set the variable when you will want google_analytics. so you might have something like before_filter :allow_google_analytics private def allow_google_analytics @allow_google_analytics = true end As for switching to https from your pages, you can simply use https in a url or if you are using link_to/url_for helpers then there is a :protocol option to allow you to change it. There also is a plugin called ssl_requirement that can be used to automatically insure you are secure and will redirect if they aren''t. Depending on your needs this may help as well. Blessings, -- Jeff Barczewski, MasterView project founder Inspired Horizons Ruby on Rails Training and Consultancy Next Ruby on Rails plus JRuby workshop Feb 22-24 St. Louis, MO http://inspiredhorizons.com/training/rails/index.html Limited seating, register now! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Peter Ertl
2007-Jan-25 14:50 UTC
Re: ssl - browser warning on IE - page contains both secure
put a link to download firefox on your page so users get a real browser! 2007/1/24, Jeff Barczewski <jeff.barczewski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > > On 1/24/07, John Henderson <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > Ed Hickey wrote: > > > do a view-source and make sure you''re not linking to any files on the > > > http:// protocol. like JS, CSS or image files. > > > > > > ed > > > > cheers ed, > > > > it was my google analytics link. it had been: > > > > <script src="http://www.google-analytics.com/urchin.js" > > type="text/javascript"> > > </script> > > <script type="text/javascript"> > > _uacct = "UA-xxxxxx-1"; > > urchinTracker(); > > </script> > > > > > > so i changed the first line to https:// > > > > now IE complains that my SSL certificate is valid but does not match the > > name of the site - google.com > > so presumably i need to leave the home page (a login page) with my > > google urchin on http and secure only those pages after login. how to > > move from http: on page 1 to force https: on subsequent pages is the > > subject of seperate post > > > > > > thanks for your help > > > > -john > > > > > I ran into the same issue after adding Google anaytics to my pages. > What I ended up doing was to use and if statement in the view to only > output the google analytics for pages that I want to allow it (which > are most my unsecure pages). > > That can be as simple as > > <%= if @allow_google_analytics %> > > google stuff here > > <% end -%> > > and then in your controller just put a before_filter to call a method > to set the variable when you will want google_analytics. > > so you might have something like > > before_filter :allow_google_analytics > > private > > def allow_google_analytics > @allow_google_analytics = true > end > > > As for switching to https from your pages, you can simply use https in > a url or if you are using link_to/url_for helpers then there is a > :protocol option to allow you to change it. > > There also is a plugin called ssl_requirement that can be used to > automatically insure you are secure and will redirect if they aren''t. > Depending on your needs this may help as well. > > Blessings, > > > -- > Jeff Barczewski, MasterView project founder > Inspired Horizons Ruby on Rails Training and Consultancy > Next Ruby on Rails plus JRuby workshop Feb 22-24 St. Louis, MO > http://inspiredhorizons.com/training/rails/index.html > Limited seating, register now! > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeff Barczewski
2007-Jan-25 14:55 UTC
Re: ssl - browser warning on IE - page contains both secure
On 1/25/07, Peter Ertl <pete4711-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> put a link to download firefox on your page so users get a real browser! >While I agree that everyone should be using Firefox, the issue exists in both browsers. In Firefix you will get an indication that part of the page is insecure as well, which is a good thing. -- Jeff Barczewski, MasterView project founder Inspired Horizons Ruby on Rails Training and Consultancy Next Ruby on Rails plus JRuby workshop Feb 22-24 St. Louis, MO http://inspiredhorizons.com/training/rails/index.html Limited seating, register now! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Matt Stone
2007-Jan-25 16:18 UTC
Re: ssl - browser warning on IE - page contains both secure
Google have an SSL link for analytics. This will work on both SSL & non SSL pages. Try using this as the url in you analytics javascript; or you may need to regenerate your code using https://www.yoursite.com instead of http://www. https://ssl.google-analytics.com/urchin.js rgds, - matt. John Henderson wrote:> Ed Hickey wrote: >> do a view-source and make sure you''re not linking to any files on the >> http:// protocol. like JS, CSS or image files. >> >> ed > > cheers ed, > > it was my google analytics link. it had been: > > <script src="http://www.google-analytics.com/urchin.js" > type="text/javascript"> > </script> > <script type="text/javascript"> > _uacct = "UA-xxxxxx-1"; > urchinTracker(); > </script> > > > so i changed the first line to https:// > > now IE complains that my SSL certificate is valid but does not match the > name of the site - google.com > so presumably i need to leave the home page (a login page) with my > google urchin on http and secure only those pages after login. how to > move from http: on page 1 to force https: on subsequent pages is the > subject of seperate post > > > thanks for your help > > -john-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---