Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2007
    Posts
    10
    Plugin Contributions
    0

    Default Admin pages jumps from https to http

    Hi,
    I just made the switch from osCommerce to ZenCart as it has a bit more functions, but now when I am in admin area https and clicks anything in the admin area ZenCart jumps to http = not secure pages. I have looked in the configure files, and the cataolgues are configured as I see it properly like this:

    Code:
    define('HTTP_SERVER', 'http://www.fontgarden.com');
      define('HTTPS_SERVER', 'https://www.fontgarden.com');
      define('HTTP_CATALOG_SERVER', 'http://www.fontgarden.com/fontshop');
      define('HTTPS_CATALOG_SERVER', 'https://www.fontgarden.com/fontshop');
    
      // Use secure webserver for catalog module and/or admin areas?
      define('ENABLE_SSL_CATALOG', 'true');
      define('ENABLE_SSL_ADMIN', 'true');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      define('DIR_WS_ADMIN', '/fontshop/admin/');
      define('DIR_WS_CATALOG', '/fontshop/');
      define('DIR_WS_HTTPS_ADMIN', '/fontshop/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/fontshop/');
    Can anyone find the error? I do have SSL cert installed on my server :)
    Thanks in advance for any help!

    Ellinor

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Admin pages jumps from https to http

    Only the login is secure,
    the way to make it totally secure is to change
    Code:
    define('HTTP_SERVER', 'http://www.fontgarden.com');
      define('HTTPS_SERVER', 'https://www.fontgarden.com');
      define('HTTP_CATALOG_SERVER', 'http://www.fontgarden.com/fontshop');
      define('HTTPS_CATALOG_SERVER', 'https://www.fontgarden.com/fontshop');
    to

    Code:
    define('HTTP_SERVER', 'https://www.fontgarden.com');
      define('HTTPS_SERVER', 'https://www.fontgarden.com');
      define('HTTP_CATALOG_SERVER', 'https://www.fontgarden.com/fontshop');
      define('HTTPS_CATALOG_SERVER', 'https://www.fontgarden.com/fontshop');
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Feb 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Admin pages jumps from https to http

    Thanks! That looks like it's fixed :)

  4. #4
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Admin pages jumps from https to http

    Quote Originally Posted by Merlinpa1969 View Post
    Only the login is secure,
    the way to make it totally secure is to change
    Code:
    define('HTTP_SERVER', 'http://www.fontgarden.com');
      define('HTTPS_SERVER', 'https://www.fontgarden.com');
      define('HTTP_CATALOG_SERVER', 'http://www.fontgarden.com/fontshop');
      define('HTTPS_CATALOG_SERVER', 'https://www.fontgarden.com/fontshop');
    to

    Code:
    define('HTTP_SERVER', 'https://www.fontgarden.com');
      define('HTTPS_SERVER', 'https://www.fontgarden.com');
      define('HTTP_CATALOG_SERVER', 'https://www.fontgarden.com/fontshop');
      define('HTTPS_CATALOG_SERVER', 'https://www.fontgarden.com/fontshop');
    What if you only want to completely secure the admin and not completely secure the catalogue side?

    I hope that makes sense! :|

  5. #5
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Admin pages jumps from https to http

    You do the same thing

    the settings in the admin configure.php file ONLY control the admin side links
    Zen cart PCI compliant Hosting

  6. #6
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Admin pages jumps from https to http

    That makes sense!

    I thought the edits were for the catalog configure.php file.

    Silly me! :)

  7. #7
    Join Date
    Feb 2005
    Location
    Captain Cook, Hawaii
    Posts
    179
    Plugin Contributions
    0

    Default Re: Admin pages jumps from https to http

    I had to impliment the above because when in Admin, it looked as though credit card payment account logon information (Authorize.Net) appears to be displayed on a non secure page.

    In any event, after enabling SSL for all of Admin, I found that any page with the language logo (the country flag) would generate an error in IE asking if I want to view the insecure information.

    It appears that the link for the flag is fully qualified and thus appears as http://www.storename.com/catalog/inc...glish/icon.gif instead of a relative directory location like /includes/languages/english/icon.gif.

    I know this language icon is displayed in a number of places. How best can I force the lookup to a relative address to eliminate the warning?
    Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)

  8. #8
    Join Date
    Feb 2005
    Location
    Captain Cook, Hawaii
    Posts
    179
    Plugin Contributions
    0

    Default Re: Admin pages jumps from https to http

    Anyone?

    I have looked through many files, I believe the pages are using DIR_WS_CATALOG_IMAGES when they should be using /images/icon.gif or a combination of FS_CATALOG and FS_IMAGES

    BecauseI'm thinking the link should be relative rather than a non-ssl full URL.

    I've spent over 8 hours searhing and trying changes. I'm not sure where all the links are...
    Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)

  9. #9
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Admin pages jumps from https to http

    ... and now you understand why the admin doesn't switch from HTTP to HTTPS automatically like the catalog.

    You can run the whole Admin as SSL by changing your configure files. Change the HTTP paths to the HTTPS address.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  10. #10
    Join Date
    Feb 2005
    Location
    Captain Cook, Hawaii
    Posts
    179
    Plugin Contributions
    0

    Default Re: Admin pages jumps from https to http

    I had changed the 2 defines to both point to HTTPS:

    define('HTTP_SERVER', 'https://www.myserver.com');
    define('HTTPS_SERVER', 'https://www.myserver.com');

    Everything worked fine except for displaying the flag from the language directory. Every time I went to modify a catalog item, the dreaded "mixed secure and non-secure" message came up.

    I finally changed the following text from HTTP_CATALOG_SERVER to HTTPS_CATALOG_SERVER and it seems to be working now.

    define('DIR_WS_CATALOG_LANGUAGES', HTTPS_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

    So if anyone needs to secure the Admin side of things (so USPS and Authorize.Net passwords are not sent in the clear when you modify their configs) just go to the Admin config file and change all 3 of the above defines to reflect HTTPS.
    Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)

 

 

Similar Threads

  1. HTTP vs HTTPS pages - as designed?
    By Brian1234 in forum General Questions
    Replies: 3
    Last Post: 13 Jun 2011, 03:41 AM
  2. Replies: 15
    Last Post: 6 Jul 2010, 03:24 AM
  3. From http:// to https://
    By Phoebus in forum General Questions
    Replies: 2
    Last Post: 9 Jan 2010, 12:07 AM
  4. Many http links in https pages
    By Brian1234 in forum General Questions
    Replies: 4
    Last Post: 11 Mar 2008, 03:18 AM
  5. Admin jumps from https to http
    By sarahk in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 7 Jun 2007, 10:42 PM

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