Results 1 to 5 of 5
  1. #1

    help question SSL configuration

    I recently upgraded to the current version of Zencart (1.3.8). I had SSL working fine before the upgrade.

    After the upgrade I changed define statements in the includes/configure.php and admin/includes/configure.php files in order to implement SSL. I think the only change I'm making is to change

    define('ENABLE_SSL', 'false');

    to

    define('ENABLE_SSL', 'true');

    But now when I try to log-in as a a customer the browser looks for the URL
    "https://www.mystore.comhttps://index.php?main_page=login"

    Obviously, no such server exists. It looks like an extra "https://" is getting stuck in between the .com and index.php.

    SSL is working fine at my site and everything works fine if I just use the non-secure configure.php files.

    Any help would be much appreciated.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: SSL configuration

    Check both configure files - you may have botched up some of the trailing slashes settings:-

    PHP Code:
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      
    define('HTTP_SERVER''http://www.yourwebsite.com');
      
    define('HTTPS_SERVER''https://www.yourwebsite.com');

      
    // Use secure webserver for checkout procedure?
      
    define('ENABLE_SSL''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_CATALOG''/');
      
    define('DIR_WS_HTTPS_CATALOG''/'); 
    20 years a Zencart User

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

    Default Re: SSL configuration

    You most likely have a trailing slash after these
    define('HTTP_SERVER', 'http://www.yourwebsite.com');
    define('HTTPS_SERVER', 'https://www.yourwebsite.com');
    so they look like this

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

  4. #4

    Default Re: SSL configuration

    Thanks to both people who responded. You got me pointed in the right direction. For the benefit of people who might have a similar problem the resolution was this;

    When the cart opens a new page (or image or whatever) it uses the configure.php files to create the url by combining your HTTPS Server definition (i.e. HTTPS_SERVER as defined in line 17) with your catalog directory definition (i.e. DIR_WS_HTTPS_CATALOG as defined in line 26). My includes/configure.php file was as follows;

    Line 17 - define('HTTPS_SERVER', 'https://www.mywebsite.com');

    and

    Line 26 - define('DIR_WS_HTTPS_CATALOG', 'https://');

    I don't know why line 26 was like this. I'm pretty sure I never touched it before so I'm guessing that is the default.

    so when you concatenate the two definitions you get;

    https://www.mywebsite.comhttps://

    This is obviously an invalid url.

    I changed line 26 to;

    define('HTTPS_SERVER', '/mycatalogdirectory/');

    and everything worked fine.

    My thanks also to whomever commented the code in the admin/includes/configure.php file. The comments were really helpful to a non-programmer like me in figuring out what was happening.

  5. #5
    Join Date
    Feb 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: SSL configuration

    Thanks for the help. I figured it out.

 

 

Similar Threads

  1. SSL Configuration
    By baddco in forum Installing on a Windows Server
    Replies: 32
    Last Post: 19 Aug 2008, 04:56 PM
  2. SSL Configuration
    By crazycucumber in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 27 Sep 2006, 01:32 AM
  3. SSL Configuration
    By storiale in forum Basic Configuration
    Replies: 16
    Last Post: 19 Jul 2006, 06:36 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