osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-25-2005, 09:52 AM
New Member
 
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
apexdog
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/'); //
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-25-2005, 10:40 AM
New Member
 
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
apexdog
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;
}	
?>
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


All times are GMT -8. The time now is 11:38 PM.


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