Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Site Switching to SSL for strange reason


frost

Recommended Posts

My Site www.sassyscraps.com.au has just recently switched to using the HTTPS_SERVER path even though SSL is not enabled.

 

My ISP can only think that perhaps this has been done with a recent upgrade to PHP 4.4.0

 

Has anyone else experienced anything similar?

 

Or point me in the right direction as to how to resolve this.

 

To resolve the problem my ISP changed the configure.php for me so that teh HTTPS_SERVER and the HTTP_SERVER went to the same location.

 

When viewing the source for the rendered index page it contained the line

 

<base href="https://sassyscraps.com.au/"> which basically made all my images not load as I am not using https on this site at this stage.

 

When teh configure.php was changed to what is below the problem went away.

 

Anyone have any ideas?

 

My configure.php is below

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'sassyscraps.com.au');

define('HTTPS_COOKIE_DOMAIN', 'sassyscraps.com.au');

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

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 NULL for productive servers

define('DB_SERVER_USERNAME', 'removedforsecurity');

define('DB_SERVER_PASSWORD', 'removedforsecurity');

define('DB_DATABASE', 'removedforsecurity');

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

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

?>

Link to comment
Share on other sites

The only way that osC could put an https URL in there is if you told it to do so in configure.php by putting a https URL in HTTP_SERVER. I'm wondering if the actual configure.php on the server isn't what you think it is. Try downloading it and see.

Link to comment
Share on other sites

There's a little script in this post that can show us what the server is doing. Why don't you put that on the server and then let us know when you've done it.

 

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

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

My Site www.sassyscraps.com.au has just recently switched to using the HTTPS_SERVER path even though SSL is not enabled.

 

My ISP can only think that perhaps this has been done with a recent upgrade to PHP 4.4.0

 

Has anyone else experienced anything similar?

 

Or point me in the right direction as to how to resolve this.

 

To resolve the problem my ISP changed the configure.php for me so that teh HTTPS_SERVER and the HTTP_SERVER went to the same location.

 

When viewing the source for the rendered index page it contained the line

 

<base href="https://sassyscraps.com.au/"> which basically made all my images not load as I am not using https on this site at this stage.

 

When teh configure.php was changed to what is below the problem went away.

 

Anyone have any ideas?

 

My configure.php is below

 

<?php

/*

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright ? 2003 osCommerce

 

  Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

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

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

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

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

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

  define('HTTP_COOKIE_DOMAIN', 'sassyscraps.com.au');

  define('HTTPS_COOKIE_DOMAIN', 'sassyscraps.com.au');

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

  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 NULL for productive servers

  define('DB_SERVER_USERNAME', 'removedforsecurity');

  define('DB_SERVER_PASSWORD', 'removedforsecurity');

  define('DB_DATABASE', 'removedforsecurity');

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

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

?>

 

 

<base href="https://your site name/">

This could appear only if you had specified an https url in config or had hard coded somewhere.

So as stevel said first download the actual configure of you catalog folder (not admin folder) and check the values again.

 

 

Satsh Mantri

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

ok I added that myenv.php file and looked at what it said.

 

As the file is harmless it is still on teh server so you can all verify the contents.

 

HTTP HOST: www.sassyscraps.com.au

Server Port: 80

SSL Status: on

Fowarded Server:

Fowarded Host:

Fowarded By:

 

This says that SSL Status is on which is why I am guessing that OSCommerce is trying to use the SSL Path instead of the standard path.

 

Also the server port is 80 wish should be standard http traffic and not SSL.

 

I have no SSL on that server as far as i know lol.

 

I have another domain www.saphirecameo.com which I have put the myenv file on as well and it has SSL Status as Blank so I know it must be something to do with the server that has the hosting as they are hosted on different servers with different hosting companies.

 

Ok, Now can anyone tell me how SSL can be on for my domain when i dont have SSL?

 

OsCommerce was installed using Fantastico

The site uses CPanel 10

 

I did a self issues SSL certificate a while back but that was for when I was going to try and encrypt traffic between my sife and the paypal ipn

 

Maybe the self cert has something to do with it????

 

Everything was working fine when I was playing with the Self Cert though so I don't see how that could change what OSC was trying to do.

Link to comment
Share on other sites

It's not so unusual to see this, other people have had the same problem.

 

Who knows why? Only the server admins could tell for sure.

 

Just set the https server line like so for now:

 

define('HTTPS_SERVER', 'http://sassyscraps.com.au')

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

Archived

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

×
×
  • Create New...