Page 1 of 5 123 ... LastLast
Results 1 to 10 of 44

setup guide for http to https?

This is a discussion on setup guide for http to https? within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I have read some threads but I'm still a little unclear about how to set the pages to switch to ...

      
  1. #1
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default setup guide for http to https?

    I have read some threads but I'm still a little unclear about how to set the pages to switch to https for my data critical pages. Can you give me some guidance? Also, something has happened to where it is not displaying properly. You can see what I mean at https://driedflowersrus.com/catalog/login.php

    Thanks for your help.

    JW

  2. #2
    Member
    Join Date
    Nov 2002
    Location
    Pennsylvania
    Posts
    93
    Rep Power
    0


    Default

    Ok, for starters, it switches to the https server, i get the notice that it is not a trusted source. basically means that the secure certificate was not issued from a company that has verified this is you.

    examples: Thawte or Verisign.

    As for the images, check your config file. it is calling the images for the following url: https://localhost/catalog/images/header_DFRUflower.gif

    in the config file locate this line:
    Code:
    define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be NULL for productive servers
    change the localhost to the url of the secure server which currently is
    Code:
    https://driedflowersrus.com
    other than what I explained, I am unclear as to what your question is.
    also check with your hosting company, they should be able to help you set your secure server and certificate

  3. #3
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default

    Thank you for answering my post. I understand about the certificate, but I don't know if I will purchase a certificate, I just want it secure. Also, I have done that part in the code you referred to. But, how do I make it switch from the http pages for the normal catalog to https for "my account", "login", and "checkout". Those are the only pages I'm concerned with.

    Did it display okay when you were in the https pages?

    Thanks,
    John

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    It automatically does the switch if you enable "https" in the configure.php file. There is nothing else to do.

    If you have this set in configure.php the switch to https and back is automatic. There is nothing else you have to do.

    Find this line:

    Code:
    define('ENABLE_SSL', false); // secure webserver for checkout procedure?
    Switch it to true, set the correct https server and that is all you need to do. The script should do the rest...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default

    I've done that, but it doesn't make the switch to https. Here is my configure.php. Am I missing something that is right in front of me?

    Can you look at this page and tell me why you think it's dispalying the way it is? https://driedflowersrus.com/catalog/...ut_payment.php


    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'HTTP://www.driedflowersrus.com'); // eg, http://localhost - should not be NULL for productive servers
    define('HTTPS_SERVER', 'HTTPS://www.driedflowersrus.com'); // eg, https://localhost - should not be NULL for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
    define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

    // define our database connection
    define('DB_SERVER', ''); // eg, localhost - should not be NULL for productive servers
    define('DB_SERVER_USERNAME', 'mysql');
    define('DB_SERVER_PASSWORD', '');
    define('DB_DATABASE', 'catalog');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
    ?>

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    There are two configure.php files that need to be set. This looks like the configure.php in /admin/includes. Have you set this in both the /catalog/includes/configure.php as well? It needs to be set there too.

    One other thing, although I dont think it makes a difference, use lowercase http and https in the urls that define your http and https server.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default

    Oh! I did not realize there were two. Actually, this one is Catalog/includes.

    I shall proceed to work admin/includes

    If I donate to OSCdox, who gets the money?

    John

  8. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    Let me know what results you get.

    Also, if you donate to OSCdox, I get the donation. It goes to offset the hosting fees, bandwidth, software licensing and encourages me to keep on doing this!

    Any donation is greatly appreciated. Heck, I am just happy to hear you would consider it!
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #9
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default

    I'll work on the file and hell yea, I think you deserve it. You have been very helpful.

  10. #10
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default

    Okay, two questions. First, is it supposed to go to synergytistic health?

    Second, why do you think my dispaly is showing up the way it is? Look at https://driedflowersrus.com/catalog/login.php

    Let me know on both and I will do that tonight.

    JW

Page 1 of 5 123 ... LastLast

Similar Threads

  1. https:// Admin redirects to http://
    By driwashsolutions in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 01-23-2006, 07:41 PM
  2. admin login goes https to http???
    By john- in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 12-23-2003, 07:19 AM

Bookmarks

Posting Permissions

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