osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Simple configuration question

This is a discussion on Simple configuration question within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Simple configuration question: I installed osCommerce and then installed an SSL cert. I can go to https://mydomain.com/admin with no problem. ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-14-2004, 04:22 AM
New Member
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Learners_permit
Default Simple configuration question

Simple configuration question:

I installed osCommerce and then installed an SSL cert. I can go to https://mydomain.com/admin with no problem.
However, when I click on a link to any lower page, it calls the page with http: not https:. How do I change the
configure files to make it use https?

My configure.php files are included below with the exception of the database section, which is working fine.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@
/hsphere/local/home/plebe6/123webmagic.com/catalog/includes/configure.php

define('HTTP_SERVER', 'http://123webmagic.com/'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://123webmagic.com/'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', 1); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_DOMAIN', '123webmagic.com');
define('HTTP_COOKIE_PATH', '');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
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/');

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@
/hsphere/local/home/plebe6/123webmagic.com/catalog/includes/local/configure.php

define('HTTP_SERVER', 'http://123webmagic.com');

define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/plebe6/123webmagic.com/');
define('DIR_FS_LOGS', '/hsphere/local/home/plebe6/logs/123webmagic.com/');
define('HTTPS_SERVER', 'https://123webmagic.com/');
define('ENABLE_SSL', 1);

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@
/hsphere/local/home/plebe6/123webmagic.com/admin/includes/configure.php


define('HTTP_SERVER', 'http://123webmagic.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
define('HTTP_CATALOG_SERVER', 'http://123webmagic.com/catalog/');
define('HTTPS_CATALOG_SERVER', 'https://123webmagic.com/catalog/');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
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_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
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/');

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@
/hsphere/local/home/plebe6/123webmagic.com/admin/includes/local/configure.php

define('HTTP_SERVER', 'http://123webmagic.com/');

define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/plebe6/123webmagic.com/');
define('DIR_FS_LOGS', '/hsphere/local/home/plebe6/logs/123webmagic.com/');
define('HTTPS_SERVER', 'https://123webmagic.com/');
define('ENABLE_SSL', 1);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 01-14-2004, 06:46 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default

Too Easy --- for forcing ADMIN to ALLWAYS use https.....

Change in:
/hsphere/local/home/plebe6/123webmagic.com/admin/includes/configure.php

define('HTTP_SERVER', 'http://123webmagic.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

to:

define('HTTP_SERVER', 'https://123webmagic.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

Okay?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-14-2004, 07:20 AM
New Member
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Learners_permit
Default Still not working

Thanks for the help. I'm sure that was part of it.

I made the change (I can't believe I didn't see that instruction) in both admin/ and catalog/includes/configure.php files, but it hasn't changed the problem. I still get sent to http:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-14-2004, 10:34 AM
New Member
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
christlabs
Default

define('ENABLE_SSL', 1); I believe should be:
define('ENABLE_SSL', true);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-14-2004, 01:08 PM
New Member
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Learners_permit
Default Still bugged

Thanks for the suggestion. I made the change, but it's still sending me to http: rather than https:

Any other suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 01-14-2004, 03:25 PM
New Member
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Learners_permit
Default

The problem has been solved!

JPF was on the right track. It turned out there are two more configure.php files: admin/includes/local/configure.php and catalog/includes/local/configure.php and the "http:" had to be changed to "https:" in both of those as well. I don't know if others have those local files or not.

Thanks to both jpf and christlabs who helped me. This is a great group for help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-14-2004, 10:31 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,074
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Learners_permit, FYI , If you have a configure.php file in the local dir, it will take precedence over the others.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 02-06-2004, 12:30 AM
Lurker
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Alcom_23
Default

Okay, what if my cofigure.php files are never really read? I've been over them like a forensics technician but when I try any of the php pages I get a page with no style whatsoever. I check with login.php and the relative path to the stylesheet.css is correct. But the administration page doesn't work either, each hyperlink returns a page not found error. The only thing that did work was the speedy MySQL database creation. Any ideas? I'm using Apache 2.0 and PHP 4.3.4.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
(Probably) Simple Stylesheets Question TheSmrtguy osCommerce 2.2 Modification Help 3 09-06-2004 08:25 PM
Simple Template Question Feeedbag osCommerce 2.2 Modification Help 2 07-22-2004 07:00 AM
Simple question about title CMWM osCMax v1.7 Discussion 3 06-10-2004 02:59 AM
A Hopefully Simple Question judoka osCommerce 2.2 Modification Help 3 06-13-2003 11:10 AM
Stock/Inventory Question and a few other simple questions! arc osCommerce 2.2 Modification Help 1 05-14-2003 07:13 PM


All times are GMT -8. The time now is 10:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax