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

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. ...

      
  1. #1
    New Member
    Join Date
    Jan 2004
    Posts
    6
    Rep Power
    0


    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);

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    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?

  3. #3
    New Member
    Join Date
    Jan 2004
    Posts
    6
    Rep Power
    0


    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:

  4. #4
    New Member
    Join Date
    Dec 2003
    Posts
    6
    Rep Power
    0


    Default

    define('ENABLE_SSL', 1); I believe should be:
    define('ENABLE_SSL', true);

  5. #5
    New Member
    Join Date
    Jan 2004
    Posts
    6
    Rep Power
    0


    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?

  6. #6
    New Member
    Join Date
    Jan 2004
    Posts
    6
    Rep Power
    0


    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.

  7. #7
    osCMax Developer

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


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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

  8. #8
    Lurker
    Join Date
    Feb 2004
    Posts
    1
    Rep Power
    0


    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.

Similar Threads

  1. (Probably) Simple Stylesheets Question
    By TheSmrtguy in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 09-06-2004, 07:25 PM
  2. Simple Template Question
    By Feeedbag in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 07-22-2004, 06:00 AM
  3. Simple question about title
    By CMWM in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 06-10-2004, 01:59 AM
  4. A Hopefully Simple Question
    By judoka in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 06-13-2003, 10:10 AM
  5. Stock/Inventory Question and a few other simple questions!
    By arc in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-14-2003, 06:13 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
  •