Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

https in admin


marksodr

Recommended Posts

Folks:

I just set up a new store.  I notice that if I go into admin as https, the minute I switch pages, it reverts to http.  How do I stay in https?

Many THX!

 

Change the follow line to reflect your secure path

 

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

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Hey Richard:

 

This is what I changed my config file to:

 

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

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

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

 

Still, if I go to https//www.ninevehapparel.com/catalog/admin, I start out in secure server mode. Then if I go to view an order, it goes back to insecure mode. Since these orders show credit card info, it concerns me. What I changed above per your suggestion was the HTTP_SERVER line to be https.

 

What am I doing wrong?

 

THX,

Mark

Link to comment
Share on other sites

post the top few lines of your configure.php file here. i know for a fact, that if you change the very top http:// to https:// it will only go in secure mode.

Link to comment
Share on other sites

post the top few lines of your configure.php file here.  i know for a fact, that if you change the very top http:// to https:// it will only go in secure mode.

 

Here are the first few lines of my configure.php from the includes directory:

 

// Define the webserver and path parameters

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

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

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

define('HTTP_CATALOG_SERVER', 'https://www.ninevehapparel.com');

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

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

Link to comment
Share on other sites

yes, sometimes we try to see more in the answer and gets going every which way. i know sometimes i get that way, just have to make sure to read it a few times to make sure you understand.

Link to comment
Share on other sites

OK--I just noticed a side affect of doing this...

 

If I try to enter the catalog just using http instead of https it hangs with the dialog box telling about my security certificate not matching my site name. The box is kind of flashing and if I click yes to continue it still just hangs.... This is the normal dialog box that I would just click once when entering https....

Mark

Link to comment
Share on other sites

changing the configure.php file in the admin section has nothing to do with the catalog section . . . did you change anything in the catalog/includes/configure.php instead of the admin/includes/configure.php?

Link to comment
Share on other sites

ok i just went to your site, you do have errors in that configure.php file.

 

post the catalog/includes/configure.php without the database info so we can go over it

Link to comment
Share on other sites

THX for looking at this. Here is what I am running right now. This is from the includes directory:

 

// Define the webserver and path parameters

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

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

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

define('HTTP_CATALOG_SERVER', 'https://www.ninevehapparel.com');

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

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

define('DIR_FS_DOCUMENT_ROOT', '/home/nineveha/www/www/catalog/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/nineveha/www/www/catalog/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/nineveha/www/www/catalog/'); // 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/');

Link to comment
Share on other sites

this is your admin/includes/configure.php

 

this line (second http)

define('HTTP_CATALOG_SERVER', 'https://www.ninevehapparel.com');

 

needs to be:

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

 

this line:

define('DIR_FS_DOCUMENT_ROOT', '/home/nineveha/www/www/catalog/');

needs to be:

define('DIR_FS_DOCUMENT_ROOT', '/home/nineveha/www/www/');

Link to comment
Share on other sites

Still seems to have the problem.... I saved the original file before I tried making changes and I'll see if that at least works. The HTTP_CATALOG_SERVER entries appeared somewhere along the line while making these changes. They weren't in the original file.

Link to comment
Share on other sites

ok better off getting an empty configure.php file for both the catalog and admin section and then piecing them together. make sure you have backups.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...