Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Help making images secure in ssl mode

    Quote Originally Posted by beasleybub View Post
    I tried using your method but because I am using a shared SSL it would not work the way you suggested.
    What do you mean by "it would not work the way you suggested"?
    What do you mean by "it would not work"?

    Using a relative path should work just fine, provided your settings in your configure.php file are correct (namely HTTP_SERVER, HTTPS_SERVER, DIR_WS_CATALOG, DIR_WS_HTTPS_CATALOG).
    It's the same with product images: relative paths are used, because that way the SSL and non-SSL pages will still show them correctly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #12
    Join Date
    May 2006
    Location
    Virginia U.S
    Posts
    173
    Plugin Contributions
    3

    Default Re: Help making images secure in ssl mode

    Quote Originally Posted by DrByte View Post
    What do you mean by "it would not work the way you suggested"?
    What do you mean by "it would not work"?
    Quote Originally Posted by kobra View Post
    Make your links to them "relative"
    change these & any others
    Code:
    <img src="http://www.bodykitsonline.co.uk/includes/templates/custom/images/cart_top.jpg"
    <img src="http://www.bodykitsonline.co.uk/includes/templates/custom/images/button_view.jpg"
    <img src="http://www.bodykitsonline.co.uk/includes/templates/custom/images/button_checkout.jpg"
    To:
    Code:
    <img src="includes/templates/custom/images/cart_top.jpg"
    <img src="includes/templates/custom/images/button_view.jpg"
    <img src="includes/templates/custom/images/button_checkout.jpg"
    I made my image links relitave and they would not show up because of the SSL. My main page gets opened as (https:) after you either use the login box add on or the contest add on. I believe the problem arrises because I am using a shared SSL certificate which has a diferent URL than the store in the config file.

    define('HTTP_SERVER', 'http://MyDomainName.com');
    define('HTTPS_SERVER', 'https://Name.Server.com/NameServerUsername');

    define('DIR_WS_CATALOG', '/CelebrityStore/');
    define('DIR_WS_HTTPS_CATALOG', '/CelebrityStore/');

    Sorry, But I do not want to post my servers information in a public forum.
    Last edited by beasleybub; 30 Sep 2009 at 06:50 PM.
    How can there be nothing? Nothing is something!

  3. #13
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Help making images secure in ssl mode

    And what happens if you put this in your browser:

    https://Name.Server.com/NameServerUs...your/image.jpg
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #14
    Join Date
    May 2006
    Location
    Virginia U.S
    Posts
    173
    Plugin Contributions
    3

    Default Re: Help making images secure in ssl mode

    Quote Originally Posted by DrByte View Post
    And what happens if you put this in your browser:

    https://Name.Server.com/NameServerUs...your/image.jpg
    I tried doing that yesterday and I do see the image using that url.

    That's the way I am using it now.

    My questions here weren't how to get the image link to work but to ask if I am compromising my websites security by doing it that way. I was not sure if showing the world my actual nameserver URL and username was a risk.

    Thanks
    How can there be nothing? Nothing is something!

  5. #15
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Help making images secure in ssl mode

    Quote Originally Posted by beasleybub View Post
    I was not sure if showing the world my actual nameserver URL and username was a risk.
    The information has to be disclosed in order for images and other content to be served. It's the same information as one would supply simply to draw the page, access an SSL URL, etc.
    So, it's no more risk than providing a login link served on an SSL page.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #16
    Join Date
    May 2006
    Location
    Virginia U.S
    Posts
    173
    Plugin Contributions
    3

    Default Re: Help making images secure in ssl mode

    Thank you drbyte.

    I guessed as much but just wanted to be assured.

    ( I doubted myself a bit )

    My apologies to kobra but I felt like he came off a bit abrasive earlier in the post. I know he was only trying to help.

    On another note, kobra said that the main page was never opened via ssl. I am sure this is true with a bone stock zen-cart installation. For some reason both the login sidebox add on and the contest add on returns you to the main page after you login.
    How can there be nothing? Nothing is something!

  7. #17
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Help making images secure in ssl mode

    It's normal to land on an ssl page after a login since the login action is an SSL activity.
    But now we're way off topic again :)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #18
    Join Date
    May 2006
    Location
    Virginia U.S
    Posts
    173
    Plugin Contributions
    3

    Default Re: Help making images secure in ssl mode

    I was reviewing some posts from months past and realized that I had been abrasive in some of my responses. To whom ever I may have offended. I would just like to apologize. Thanks everybody whom has helped me in the past.
    How can there be nothing? Nothing is something!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. HELP! My product images disappear in secure mode
    By tinstew in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 25 Jun 2009, 06:05 PM
  2. Making the product pages secure with SSL
    By RichardWard in forum Basic Configuration
    Replies: 1
    Last Post: 5 Dec 2008, 09:37 AM
  3. Replies: 8
    Last Post: 6 Jul 2008, 07:36 AM
  4. Replies: 2
    Last Post: 7 Jun 2006, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg