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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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
| ||||
| ||||
| 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.
__________________ Clifton Murphy CEO/CTO Hyperactive Inc. osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists! |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Configure.php??? | ltldoc | osCommerce 2.2 Installation Help | 1 | 03-20-2006 08:58 PM |
| Configure.php problems | h4ppy_girl | osCommerce 2.2 Installation Help | 1 | 10-14-2004 03:48 AM |
| How to configure SSL? | brucek | osCommerce 2.2 Installation Help | 3 | 03-31-2004 01:30 PM |
| includes/configure.php is different | glennn | osCommerce 2.2 Installation Help | 1 | 08-18-2003 10:36 PM |
| Configure.php and SSL | judoka | osCommerce 2.2 Modification Help | 1 | 05-29-2003 09:14 PM |