Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Struggling with SSL Implementation


slas7713

Recommended Posts

Posted

Since I got no response on my initial post with more info http://www.oscommerce.com/forums/index.php?showtopic=183632

I thought I'd ask more basic questions.

 

Obviously I'm dying when I go to the checkout_shipping.php page and it's trying to route me to the login.php page which is where SSL kicks in. Everything works perfect from within the LAN and it's not until I change my test IP address (192.168.0.2) to the actual www address that it quits working with a "Page cannot be displayed".

This one has me stumped since I'm mapping to the exact same place with the www address.

 

I've played around extensively with my configure.php file and am looking for other areas to look at. I've searched the site for two days and I'm looking for anyone with possible suggestions that I look to.

 

Thanks,

 

Steve L

Posted

Post your config file here minus password/username etc

Your online success is Paramount.

Posted
Post your config file here minus password/username etc

 

Yesudo, if you follow the link above the other post has my config file.

 

Steve L

Posted
Yesudo, if you follow the link above the other post has my config file.

 

Steve L

 

Emmet,

 

Here it is again. I have my admin and catalog directories seperate under the main directory /tznu/. I have tzcat defined in Apache to /tznu/catalog/

 

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

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

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

define('HTTP_COOKIE_DOMAIN', 'www.teeznu.com');

define('HTTPS_COOKIE_DOMAIN', 'www.teeznu.com');

define('HTTP_COOKIE_PATH', '/tznu/'); //sites root directory

define('HTTPS_COOKIE_PATH', '/tznu/'); //sites root directory

define('DIR_WS_HTTP_CATALOG', '/tzcat/'); //catalog directory at /tznu/catalog/ (path defined in apache)

define('DIR_WS_HTTPS_CATALOG', '/tzcat/'); //catalog directory seperate from /tznu/admin/

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

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'someuser');

define('DB_SERVER_PASSWORD', 'somepassword');

define('DB_DATABASE', 'tznu');

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

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

Posted

Put it on a real webserver, they're cheap. Then worry about ssl.

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
Put it on a real webserver, they're cheap. Then worry about ssl.

 

Alan,

 

It is being implemented on a real web server. You can access the site at

 

www.lswebsolutions.com/tzcat/

 

Please let me know if you have anything productive to add.

 

Steve L

Posted
Alan,

 

It is being implemented on a real web server. You can access the site at

 

www.lswebsolutions.com/tzcat/

 

Please let me know if you have anything productive to add.

 

Steve L

 

Just a little additional info for those that may be able to contribute suggestions. The site is hosted on my web server at www.lswebsolutions.com with an Apache defined virtual host as www.teeznu.com. The root directory for the site is at /tznu/, the catalog directory is mapped as /tzcat/ to /tznu/catalog/ and the admin directory is mapped as /tzadmin/ to the /tznu/admin/ directory. If all reference to the www.teeznu.com directory are changed to 192.168.0.2 (my internal IP) then everything works perfectly.

 

Any more ideas are welcome.

 

Steve L

Posted

you wil need to have your 'host' setup apache properly, this isnt an oscommerce problem. ask your host.

Posted

Hi there,

 

This may be way off but could it be a DNS issue? Maybe try the IP address of the server instead of the domain name?

 

Dave

Posted
you wil need to have your 'host' setup apache properly, this isnt an oscommerce problem. ask your host.

 

John,

 

I have access to modify the httpd.conf file. What do you suggest?

 

Steve L

 

Hi there,

 

This may be way off but could it be a DNS issue? Maybe try the IP address of the server instead of the domain name?

 

Dave

 

 

Dave,

 

I have tried that but accessing, or finding, the site doesn't appear to be the issue and in fact there were no issues until implementation of SSL and the certificate.

 

Steve L

Posted

Okay, I looked for the OSC install you have on the teeznu.com domain, not the lssolutions.com domain. I found it here:

 

http://www.teeznu.com/tznu/catalog/

 

and here:

 

http://www.teeznu.com/tzcat/

 

Which one do you want to be the "real thing?" You can't configure both - it looks like you have a combination of the two in your configure file.

 

You have Apache configured with tzcat/ as an alias for /tznu/catalog. That's fine. Which do you want to use? You pick one, and enter it as such in the configure file. Say you pick tzcat/ as the "real thing." Enter it as such in the configure file. If a customer goes to tznu/catalog/, it's okay, because all subsequent links will be to tzcat/. So, you links, images, cookies, etc will have the correct path.

 

Cookies aren't currently being set because they have the wrong path - all your other variables assume tzcat/ but the cookie path specifies tznu/.

 

Other than the cookie path, your configure looks fine and the site works fine (except for the SSL links). This indicates to me that you may not have SSL configured correctly at all. https://www.teeznu.com is not working. I get a time out when I try to request it. That's an Apache config problem and nothing you do in configure.php will fix it. Try the apache lists if you're stuck on that.

 

Your internal IP works because that's sort of a no-brainer for the servers involved. The secure domain doesn't work because it's not set up and/or working.

 

 

 

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

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

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

define('HTTP_COOKIE_DOMAIN', 'www.teeznu.com');

define('HTTPS_COOKIE_DOMAIN', 'www.teeznu.com');

define('HTTP_COOKIE_PATH', '/tzcat/'); //sites root directory

define('HTTPS_COOKIE_PATH', '/tzcat/'); //sites root directory

define('DIR_WS_HTTP_CATALOG', '/tzcat/'); //catalog directory at /tznu/catalog/ (path defined in apache)

define('DIR_WS_HTTPS_CATALOG', '/tzcat/'); //catalog directory seperate from /tznu/admin/

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

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'someuser');

define('DB_SERVER_PASSWORD', 'somepassword');

define('DB_DATABASE', 'tznu');

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

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

Contributions

 

Discount Coupon Codes

Donations

Posted
Okay, I looked for the OSC install you have on the teeznu.com domain, not the lssolutions.com domain. I found it here:

 

http://www.teeznu.com/tznu/catalog/

 

and here:

 

http://www.teeznu.com/tzcat/

 

Which one do you want to be the "real thing?" You can't configure both - it looks like you have a combination of the two in your configure file.

 

You have Apache configured with tzcat/ as an alias for /tznu/catalog. That's fine. Which do you want to use? You pick one, and enter it as such in the configure file. Say you pick tzcat/ as the "real thing." Enter it as such in the configure file. If a customer goes to tznu/catalog/, it's okay, because all subsequent links will be to tzcat/. So, you links, images, cookies, etc will have the correct path.

 

Cookies aren't currently being set because they have the wrong path - all your other variables assume tzcat/ but the cookie path specifies tznu/.

 

Other than the cookie path, your configure looks fine and the site works fine (except for the SSL links). This indicates to me that you may not have SSL configured correctly at all. https://www.teeznu.com is not working. I get a time out when I try to request it. That's an Apache config problem and nothing you do in configure.php will fix it. Try the apache lists if you're stuck on that.

 

Thanks so much for all the help,

 

Through configuration changes in my httpd.conf file, and some in my configure.php, I have finally been successful and it only took me 2.5 days, much less that some of the other OSC problems I've tackled.

 

Steve L

Posted

hello slas7713 !

would you explain in steps what you did with httpd.conf and configure files in detail?

and where is this httpd.conf living?

Archived

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

×
×
  • Create New...