Results 1 to 3 of 3

Help configure SSL

This is a discussion on Help configure SSL within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I have spend 5 days in attempting convert my OSC site across to https without success. However I feel that ...

      
  1. #1
    Lurker
    Join Date
    Oct 2004
    Posts
    3
    Rep Power
    0


    Default Help configure SSL

    I have spend 5 days in attempting convert my OSC site across to https without success. However I feel that the solution is close at hand. These are the messages I have been following so far:

    1. http://forums.oscommerce.com/index.p...p;#entry454378
    2. http://forums.oscommerce.com/index.p...6739&st=20
    3. http://oscdox.com/index.php?name=PNp...;highlight=ssl

    My ISP assisted me with follow:
    ======================
    We do not allow symlinks on our shared servers as they are security risks. A hacker can follow symlinks and get access to the root of the server. However, our programmers have developed an html code that you can put in your httpdosc folder that will redirect visitors to your site and checkout store in your httpsdocs folder. Just upload everything to the httpsdocs folder and use the html code in your httpdocs folder and it will redirect to your httpsdocs folder where your site and store are located:

    <HTML><HEAD><me ta HTTP-EQUIV="REFRESH" content="0; url=https://yourdomain.com">
    </HEAD>
    <BODY bgColor=white>
    </BODY></HTML>

    ====================

    My question is quite simple,
    1. Assuming I have changed the configure.php in both /includes & /admin/includes
    2. install a configure.php in includes/local/configure.php

    Q1. Do I justcopy the OSC directory (/shop) from /httpdosc to /httpsdocs & html code in /httpdocs?
    Q2. Does that mean all my users would only get https connection regardless if they are browsing my catalog
    Q3. Can someone suggest any other better way of handling this situation?

    regards

    Paul

  2. #2
    Lurker
    Join Date
    Oct 2004
    Posts
    3
    Rep Power
    0


    Default

    It is still not working tonight. So I am getting a little dissapointed with my question of the issue. So it's back to basics so I might make it clearer. My site is getting error 404 when I turn https on.

    I have setup a OSC site on http://www.shopforone.com/shop however I haven't changed to a static IP nor purchased an SSL certificate yet. The SSL certificate is just one generated from Plesk7.

    My /shop/includes/configure.php

    ===================
    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://shopforone.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://shopforone.com'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'shopforone.com');
    define('HTTPS_COOKIE_DOMAIN', 'shopforone.com');
    define('HTTP_COOKIE_PATH', '/shop/');
    define('HTTPS_COOKIE_PATH', '/shop/');
    define('DIR_WS_HTTP_CATALOG', '/shop/');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_INCLUDES', 'includes/');
    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/');

    //Added for BTS1.0
    define('DIR_WS_TEMPLATES', 'templates/');
    define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
    define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
    //End BTS1.0
    define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
    define('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/shopforone.com/httpdocs/shop/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

    ========================

    My /shop/admin/includes/configure.php is as follows:
    ------------------------------------------------------


    define('HTTP_SERVER', 'http://shopforone.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTP_CATALOG_SERVER', 'http://shopforone.com');
    define('HTTPS_CATALOG_SERVER', 'https://shopforone.com');
    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/usr/local/psa/home/vhosts/shopforone.com/httpdocs/shop/'); // where the pages are located on the server
    define('DIR_WS_ADMIN', '/shop/admin/'); // absolute path required
    define('DIR_FS_ADMIN', '/usr/local/psa/home/vhosts/shopforone.com/httpdocs/shop/admin/'); // absolute path required
    define('DIR_WS_CATALOG', '/shop/'); // absolute path required
    define('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/shopforone.com/httpdocs/shop/'); // absolute path required
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

    // Added for Templating
    define('DIR_FS_CATALOG_MAINPAGE_MODULES', DIR_FS_CATALOG_MODULES . 'mainpage_modules/');
    define('DIR_WS_TEMPLATES', DIR_WS_CATALOG . 'templates/');
    define('DIR_FS_TEMPLATES', DIR_FS_CATALOG . 'templates/');

    ========================

    Thanks for any suggestions.

  3. #3
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    8


    Default

    to fix this requires nothing of "extra code". simply copy ALL files from httpdocs/shop to httpsdocs/shop and change 2 or 3 lines in configure.php and your done.

Similar Threads

  1. Configure.php???
    By ltldoc in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 03-20-2006, 09:58 PM
  2. Configure.php problems
    By h4ppy_girl in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 10-14-2004, 04:48 AM
  3. How to configure SSL?
    By brucek in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 03-31-2004, 02:30 PM
  4. includes/configure.php is different
    By glennn in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 08-18-2003, 11:36 PM
  5. Configure.php and SSL
    By judoka in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-29-2003, 10:14 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
  •