Results 1 to 2 of 2

SSL Problems

This is a discussion on SSL Problems within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; I have a non-shared SSL cert on my site. Regular html files work correctly & display the little SSL lock ...

      
  1. #1
    New Member
    Join Date
    Jan 2005
    Posts
    7
    Rep Power
    0


    Default SSL Problems

    I have a non-shared SSL cert on my site.

    Regular html files work correctly & display the little SSL lock in your browser. https://www.apexdog.com/info.html

    Pages in oscommerce display a warning indicating both secure and non-secure content & do not display the little SSL lock.... I tried apexdog.com instead of www.apexdog.com & I get the same results.

    The SSL cert was issued to www.apexdog.com, not "apexdog.com"

    I already read the info at this link::http://oscdox.com/modules.php?op=mod...p;pagename=SSL & the lines listed for the /admin/includes/configure.php file are different that what is normally there in oscmax or the basic oscommerce release. (it looks like a cut & paste error to me) Also that doc states its for a shared cert, which I don't have..

    Any advise on getting this resolved???

    The contents of my config files are as follows

    Code:
    Relavent lines from /includes/configure.php
      define('HTTP_SERVER', 'http://www.apexdog.com'); // eg, ..
      define('HTTPS_SERVER', 'https://www.apexdog.com'); // eg, ..
      define('ENABLE_SSL', true); // secure webserver for chec...
      define('HTTP_COOKIE_DOMAIN', 'www.apexdog.com');
      define('HTTPS_COOKIE_DOMAIN', 'www.apexdog.com');
      define('HTTP_COOKIE_PATH', '/');
      define('HTTPS_COOKIE_PATH', '/');
      define('DIR_WS_HTTP_CATALOG', '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
    
    Relavent lines from /admin/includes/configure.php
      define('HTTP_SERVER', 'https://www.apexdog.com'); // eg...
      define('HTTP_CATALOG_SERVER', 'https://www.apexdog.com');
      define('HTTPS_CATALOG_SERVER', 'https://www.apexdog.com');
      define('ENABLE_SSL_CATALOG', 'true'); // secu...
      define('DIR_FS_DOCUMENT_ROOT', '/home/apexdog2/public_html/'); //
      define('DIR_WS_ADMIN', '/admin/'); // absolute path required
      define('DIR_FS_ADMIN', '/home/apexdog2/public_html/admin/'); // 
      define('DIR_WS_CATALOG', '/'); // absolute path required
      define('DIR_FS_CATALOG', '/home/apexdog2/public_html/'); //

  2. #2
    New Member
    Join Date
    Jan 2005
    Posts
    7
    Rep Power
    0


    Default Problem Solved

    I had a hard link (stat counter) at the bottom of my main template page that was breaking SSL. I wraped the code in a if statement so it does not get used if SSL is active. It works great...

    Code:
    <?php
    if (getenv('HTTPS') != 'on' or getenv('SERVER_PORT') != 443) {
    $add_str = <<<ADDFREESTATS
    <!-- ADDFREESTATS.COM AUTOCODE V4.0 -->
    <script type="text/javascript">
    <!--
    var AFS_Account="00334894";
    var AFS_Tracker="auto";
    var AFS_Server="www3";
    var AFS_Page="DetectName";
    var AFS_Url="DetectUrl";
    // -->
    </script>
    <script type="text/javascript" src="http://www3.addfreestats.com/cgi-bin/afstrack.cgi?usr=00334894">
    </script>
    <noscript>
    <a href="http://www.addfreestats.com" target="_blank">
    <img src="http://www3.addfreestats.com/cgi-bin/connect.cgi?usr=00334894Pauto" border=0 title="AddFreeStats.com Free Web Stats!"></a>
    </noscript>
    <!-- ENDADDFREESTATS.COM AUTOCODE V4.0  -->
    ADDFREESTATS;
    echo $add_str;
    }	
    ?>

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
  •