Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What am I doing wrong with my SSL set-up


Amer786

Recommended Posts

Posted

THIS IS MY CONFIG.PHP UNDER /WWW/INCLUDES

 

// Define the webserver and path parameters

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

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

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

define('HTTPS_SERVER', 'https://asapcellphones.ca'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.asapcellphones.ca');

define('HTTPS_COOKIE_DOMAIN', 'asapcellphones.ca');

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

 

 

 

THIS IS MY CONFIG.PHP UNDER ADMIN/INCLUDES/

 

// Define the webserver and path parameters

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

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

define('HTTPS_SERVER', 'http://www.asapcellphones.ca'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://asapcellphones.ca');

define('HTTPS_CATALOG_SERVER', 'https://asapcellphones.ca');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/asapcell/public_html/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/asapcell/public_html/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', '/home/asapcell/public_html/'); // absolute path required

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

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'asapcell_osc1');

define('DB_SERVER_PASSWORD', 'JiEYwXNkxx98');

define('DB_DATABASE', 'asapcell_osc1');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

Thisi s what the address bar says when I try to go into my admin page

 

http://asapcellphones.ca/admin/HTTP_SERVER...40f257492c391e6

 

 

 

 

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

 

--------------------------------------------------------------------------------

 

Please try the following:

 

If you typed the page address in the Address bar, make sure that it is spelled correctly.

 

Open the asapcellphones.ca home page, and then look for links to the information you want.

Click the Back button to try another link.

Click Search to look for information on the Internet.

 

 

 

HTTP 404 - File not found

Internet Explorer

Posted

In my admin this:

 

THIS IS MY CONFIG.PHP UNDER ADMIN/INCLUDES/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTPS_SERVER', 'http://www.asapcellphones.ca'); // eg, http://localhost - should not be empty for productive servers

 

Would be:

 

THIS IS MY CONFIG.PHP UNDER ADMIN/INCLUDES/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.asapcellphones.ca'); // eg, http://localhost - should not be empty for productive servers

Mine doesn't have a definition for HTTPS_SERVER

 

And yours is missing the definition for HTTP_SERVER

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
In my admin this:

 

THIS IS MY CONFIG.PHP UNDER ADMIN/INCLUDES/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTPS_SERVER', 'http://www.asapcellphones.ca'); // eg, http://localhost - should not be empty for productive servers

 

Would be:

 

THIS IS MY CONFIG.PHP UNDER ADMIN/INCLUDES/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.asapcellphones.ca'); // eg, http://localhost - should not be empty for productive servers

Mine doesn't have a definition for HTTPS_SERVER

 

And yours is missing the definition for HTTP_SERVER

 

This is what it looks like after the changes you suggested:

 

// Define the webserver and path parameters

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

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

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

define('HTTP_CATALOG_SERVER', 'http://www.asapcellphones.ca');

define('HTTPS_CATALOG_SERVER', 'https://asapcellphones.ca');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 

 

The issue is that how do I know iti s secure, I see no lock on the browser ot tell me it is secure?

 

 

http://asapcellphones.ca/admin/categories....4e8b92a0605bc11

 

This is the path to my catelog admin side. it is showing http and not https. I am totally confused here. Can you or somebody give me step by steps instructtions on how ot set this up so that I can see that it is secure. Maybe even explain what the definiation lines in the config files do, that will go a long way to help.

 

Thanks in advance

Posted

There is a contribution or a "fix" to make the Admin 100% "secure".

 

I've tried it, and never got it to work.

 

I just use https://mysite.com/admin when accessing my Admin.

 

At least the login is secure, but that's about it.

 

Maybe someone else can tell us what we're doing wrong, and how to make the WHOLE admin secure.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...