osCmax v2.5 User Manual
Results 1 to 3 of 3

Upgrading security - trying to setup SSL - Wiki not clear enough (to me)...for V2.0.25

This is a discussion on Upgrading security - trying to setup SSL - Wiki not clear enough (to me)...for V2.0.25 within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; SSL security on the Wiki states: Catalog Side Edit catalog/includes/config.php define('HTTPS_CATALOG_SERVER', ' https://yoursite.com '); define('ENABLE_SSL_CATALOG', 'true'); Admin Side Edit catalog ...

      
  1. #1
    JRR
    JRR is offline
    Member
    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    52
    Rep Power
    3


    Default Upgrading security - trying to setup SSL - Wiki not clear enough (to me)...for V2.0.25

    SSL security on the Wiki states:

    Catalog Side

    Edit catalog/includes/config.php
    define('HTTPS_CATALOG_SERVER', 'https://yoursite.com'); define('ENABLE_SSL_CATALOG', 'true');



    Admin Side

    Edit catalog/youradmin/includes/config.php
    define('HTTP_SERVER', 'https://yoursite.com'); define('HTTP_CATALOG_SERVER', 'http://yoursite.com'); define('HTTPS_CATALOG_SERVER', 'https://yoursite.com'); define('ENABLE_SSL_CATALOG', 'true');

    However oscMax 2.0.25 uses configure.php (minor change) but does not have the lines HTTPS_CATALOG_SERVER as defined above. Rather the lines are:

    My
    Line
    # php code

    14 define('HTTP_SERVER', 'http://www.yoursite.com');
    15 define('HTTPS_SERVER', 'https://www.yoursite.com');
    16 define('ENABLE_SSL', true);

    So my questions are - should I first comment out line 15 when I define line 16 & 17? Do I still need to add the HTTPS_CATALOG_SERVER bit along with the HTTPS_SERVER (line 15 here)?

    I will also add the recommended code to login.php to force SSL even if a direct URL is used as per http://wiki.oscdox.com/forcessl?s[]=ssl

    Thanks!

    John :-#)#

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    1 out of 1 members found this post helpful.

    Default Re: Upgrading security - trying to setup SSL - Wiki not clear enough (to me)...for V2.0.25

    John,

    Just change the lines so they look like the ones in the wiki. Don't comment things out unless you are told to!

    osCmax will not use SSL on every page (as this is a waste of time and will slow your site down quite a bit) - it will use it on account pages, checkout, etc. where it might be needed.

    So EDIT catalog/includes/configure.php from

    Code:
    define('HTTPS_SERVER', '');
    define('ENABLE_SSL', 'false');
    to

    Code:
    define('HTTPS_SERVER', 'https://yoursite.com');
    define('ENABLE_SSL', 'true');
    So EDIT catalog/admin/includes/configure.php from

    Code:
    define('HTTPS_CATALOG_SERVER', ''); 
    define('ENABLE_SSL_CATALOG', 'false');
    to

    Code:
    define('HTTPS_CATALOG_SERVER', 'https://yoursite.com'); 
    define('ENABLE_SSL_CATALOG', 'true');
    Note: the 's' at then end of the https://

    Job done!

    Regards,
    pgmarshall
    _______________________________

  3. #3
    JRR
    JRR is offline
    Member
    Join Date
    Sep 2009
    Location
    Vancouver, BC, Canada
    Posts
    52
    Rep Power
    3


    Default Re: Upgrading security - trying to setup SSL - Wiki not clear enough (to me)...for V2.0.25

    Oh, right, the ADMIN (youradmin) configure.php is where that catalog_server bit hides...must read CAREFULLY the instructions, and not try in the middle of the night...

    Thanks for your patience!

    John :-#)#

Similar Threads

  1. WIKI documentation
    By 20pictures in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 02-14-2010, 05:27 AM
  2. oscDox Wiki down - please help!
    By feenix in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 12-08-2007, 01:20 PM

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
  •