Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installed shared ssl, but padlock does not show


baner

Recommended Posts

I been all weekend reading and doing all suggestions available on this forum, but still not able to have the padlock icon to show, can someone please look at my config files any comment will be greatly appreciated

 

Catalog:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.top10attorney.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.westonmall.com/top10attorney'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'top10attorney.com');

define('HTTPS_COOKIE_DOMAIN', 'westonmall.com/top10attorney');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_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']) . 'C:\site\top10attorney.com\Web\/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

ADMIN:

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

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

define('HTTP_CATALOG_SERVER', 'http://www.top10attorney.com');

define('HTTPS_CATALOG_SERVER', 'https://www.westonmall.com/top10attorney');

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', '/');

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

Link to comment
Share on other sites

Use the code from here

http://www.oscommerce.com/forums/index.php?sho...88entry713688

 

It is explained here

http://www.oscommerce.com/forums/index.php?sho...23entry672623

 

Then you may need to edit a line in includes/functions/general.php

Not sure where this post is

You can define('HTTP_SERVER', 'https://www.top10attorney.com'); in your admin/includes.config.php

Link to comment
Share on other sites

Hello chriweb, thanks for your reply,

 

I did use the code and this is what I get: (is all blank)

 

$HTTP_HOST = www.top10attorney.com

$HTTPS_HOST =

getenv('SERVER_PORT') =

getenv('HTTPS') =

getenv('HTTP_X_FORWARDED_SERVER') =

getenv('HTTP_X_FORWARDED_HOST') =

getenv('HTTP_X_FORWARDED_BY') =

$_SERVER['HTTPS'] = off

getenv('DOCUMENT_ROOT') =

$DOCUMENT_ROOT = C:\site\top10attorney.com\Web

 

 

Then you may need to edit a line in includes/functions/general.php

Not sure where this post is

You can define('HTTP_SERVER', 'https://www.top10attorney.com'); in your admin/includes.config.php

 

I did add the "s" and nothing happens

 

Thanks

Link to comment
Share on other sites

Hello chriweb, thanks for your reply,

 

I did use the code and this is what I get: (is all blank)

 

$HTTP_HOST = www.top10attorney.com

$HTTPS_HOST =

getenv('SERVER_PORT') =

getenv('HTTPS') =

getenv('HTTP_X_FORWARDED_SERVER') =

getenv('HTTP_X_FORWARDED_HOST') =

getenv('HTTP_X_FORWARDED_BY') =

$_SERVER['HTTPS'] = off

getenv('DOCUMENT_ROOT') =

$DOCUMENT_ROOT = C:\site\top10attorney.com\Web

I did add the "s" and nothing happens

 

Thanks

You are getting $_SERVER['HTTPS'] = off.

 

What's the link to the script?

 

Can you get a lock on a test html page that's got nothing to do with osC?

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

First off you'd better lock down your admin and now! There are malicious lurkers here that will mess up your site in minutes.

 

Second, the answer is staring you in the face.

 

$HTTP_HOST = www.westonmall.com

$HTTPS_HOST =

getenv('SERVER_PORT') =

getenv('HTTPS') =

getenv('HTTP_X_FORWARDED_SERVER') =

getenv('HTTP_X_FORWARDED_HOST') =

getenv('HTTP_X_FORWARDED_BY') =

$_SERVER['HTTPS'] = on

getenv('DOCUMENT_ROOT') =

$DOCUMENT_ROOT = C:\Websites\vendedor\siteowner\westonmall.com\Web

 

Refer back to http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=672623

 

But basically what you need to do is set line 41 in application_top.php like so:

 

$request_type = ($_SERVER['HTTPS'] == 'on') ? 'SSL' : 'NONSSL';

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

First off you'd better lock down your admin and now! There are malicious lurkers here that will mess up your site in minutes.

 

Second, the answer is staring you in the face.

 

 

 

Refer back to http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=672623

 

But basically what you need to do is set line 41 in application_top.php like so:

 

$request_type = ($_SERVER['HTTPS'] == 'on') ? 'SSL' : 'NONSSL';

Alan thank you very much for your help, during the weekend I changed line 41 but I was using "$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';" instead of "$request_type = ($_SERVER['HTTPS'] == 'on') ? 'SSL' : 'NONSSL';"

 

Now it workson the catalog pages when you click in My Account link, I'll get the lock.

But I think I'm not going to be able to use secure pages in the administrations pages, becouse it keeps looking for the images in the domain where the secure certificate is, I think I will leave it like that, only secure pages in the shopping cart

 

once again thanks to all

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...