Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

site works only in ssl mode


movado

Recommended Posts

Posted

I can only view my site in ssl

 

http://www.njtoys-n-things.com/catalog/index.php

https://www.njtoys-n-things.com/catalog/index.php

 

here is the config file

 

Am I missing something?

It seems when I hit the refresh button I can see it is trying to connect to the page.

 

// Define the webserver and path parameters

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

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

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

define('HTTP_CATALOG_SERVER', 'http://www.njtoys-n-things.com');

define('HTTPS_CATALOG_SERVER', 'https://www.njtoys-n-things.com');

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

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', 'localhost');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/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', 'C:/phpdev5/www/public/catalog/');

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', '******');

define('DB_SERVER_PASSWORD', '*****');

define('DB_DATABASE', '*******');

define('USE_PCONNECT', 'true'); // use persistent connections?

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

Posted

This is the catalog config file

 

// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', 'localhost');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/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', 'C:/phpdev5/www/public/catalog/');

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', '****');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', '******');

define('USE_PCONNECT', 'true'); // use persistent connections?

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

Posted

define('HTTP_COOKIE_DOMAIN', 'localhost');
define('HTTPS_COOKIE_DOMAIN', 'localhost');

 

try

 

define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');
define('HTTPS_COOKIE_DOMAIN', 'https://yourdomain.com');

 

and set persistent connections to 'false'

 

That should clear that file up for you.

 

Vger

Posted

i'm afraid that didn't do it. Thanks but i can't tell you all the things i have tried and nothing. Something is wrong. I am on a windows platform but that shoul not make a difference. I don't know what to do

Posted

also notice when you click on an item it takes you to http and does not show. Is there something in the server i need to change? maybe my ssl is set up wrong?

Posted

Well I have tried everything and I do not know why I cannot get the http pages to work and only https pages working. I am through for today and tomorrow I will work on it some more but after thet I really need to move along and find something that will work. Thanks

Posted

You're trying to do something difficult. Are you running this on a personal box via dsl or cable modem?

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)

Posted

Well, I've never tried anything like that for ssl but it seems to me that a shitload of things could mess up ssl links for a host accessed via dsl.

 

Why not get a cheap hosting site and stop tearing your hair out?

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)

Posted

i have to say that I can reach an index.html page on http or https when it is in my root folder. Just for this i can only reach https. So in other words the pages that are supposed to be in https are and those that are not are. But the ones that are not I cannot view unless I physically put the s in https and then it is viewable. So os is doing the correct job in designating what is http and what is https. Its just what is in http is not working unless I put the s in https. I hope that makes sense.

Posted

this is a different type of problem than I have. My problem is http doesn't work at all. Sometimes you can see the site for a second the all of a sudden it just switches to server cannot be found. These people are having a problem with pages showing secure and non secure items and the pad lock not showing they are secure. I have seen these threads like I said I have done some pretty thoough research and tried many things. There is an answer though and somebody knows it.

Posted

I did a set up with local host and all is working fine so something is happening as soon as i set it up for the internet. So something is going on I bet with the way it is listening to the ports. It has something to do with the scripting somewhere because I have set up another area where I can easily switch from http to https. So something in the os scripting is muffing things up when a call is made to http

Archived

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

×
×
  • Create New...