Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Site on Linux Server


solardirect

Recommended Posts

My existing site is running on my Linux Server with the MySQL DB and OSC code on the same box. It is presently set up entirely as SSL; in other words all pages of the store are secure. All works well; however, I get the impression that Google does not like it since even though some pages are getting indexed, the PR remains "Current Page is not ranked by Google". I am thinking that Google does not like https pages for PR.

 

So, I want to have unsecure pages until checkout, at which time it switches to secure. I am confused on what to do to make this happen. To maintain existing links, I would prefer to keep the site as is plus have a http site with the same content. I would think that I would just point the port 80 servername to the same documentroot, but that does not seem to work. Maybe I am missing something???

 

Here is my current setup with the all-secure site:

 

HTTPD.CONF

#this is just a html page that forwards to the secure site if someone types in http instead of https
<VirtualHost 209.194.149.220:80>
DocumentRoot /home/solardirect/www/http.shop.solardirect.com/
ServerName shop.solardirect.com

#this is the secure site
<VirtualHost 209.194.149.220:443>
DocumentRoot /home/solardirect/www/shop.solardirect.com/html
ServerName shop.solardirect.com

 

CONFIGURE.PHP

  #notice that both http & https point to the https url
 define('HTTP_SERVER', 'https://shop.solardirect.com'); 
 define('HTTPS_SERVER', 'https://shop.solardirect.com'); 
 define('ENABLE_SSL', true);  
 define('HTTP_COOKIE_DOMAIN', 'shop.solardirect.com');
 define('HTTPS_COOKIE_DOMAIN', 'shop.solardirect.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');

Boom... Big butta boom.

Link to comment
Share on other sites

I would think that I would just point the port 80 servername to the same documentroot, but that does not seem to work.

What doesn't work about it? What happens? Given your setup, I would do the following:

 

1. Edit httpd.conf so that port 80 uses the same ROOT as 443.

 

2. Restart the web server.

 

3. Change HTTP_SERVER in includes/configure.php so that it points to http instead of https.

 

Is this what you tried? What happens?

 

Hth,

Matt

Link to comment
Share on other sites

So, I want to have unsecure pages until checkout, at which time it switches to secure. I am confused on what to do to make this happen. To maintain existing links, I would prefer to keep the site as is plus have a http site with the same content. I would think that I would just point the port 80 servername to the same documentroot, but that does not seem to work. Maybe I am missing something???

 

Here is my current setup with the all-secure site:

 

CONFIGURE.PHP

 ?#notice that both http & https point to the https url
?define('HTTP_SERVER', 'https://shop.solardirect.com'); 
?define('HTTPS_SERVER', 'https://shop.solardirect.com'); 
?define('ENABLE_SSL', true); ?
?define('HTTP_COOKIE_DOMAIN', 'shop.solardirect.com');
?define('HTTPS_COOKIE_DOMAIN', 'shop.solardirect.com');
?define('HTTP_COOKIE_PATH', '/');
?define('HTTPS_COOKIE_PATH', '/');
?define('DIR_WS_HTTP_CATALOG', '/');
?define('DIR_WS_HTTPS_CATALOG', '/');
?define('DIR_WS_IMAGES', 'images/');

The SIMPLE answer is to allow OSC to switch between http and https as needed - and is suggested. It will use https when needed (account signups, checkouts ect..)

 

  define('HTTP_SERVER', 'http://shop.solardirect.com');

  define('HTTPS_SERVER', 'https://shop.solardirect.com');

  define('ENABLE_SSL', true);

 

SOO SIMPLE

Link to comment
Share on other sites

Ok, I have changed:

 

HTTPD.CONF

<VirtualHost 209.194.149.220:80>
DocumentRoot /home/solardirect/www/shop.solardirect.com/html
ServerName shop.solardirect.com

<VirtualHost 209.194.149.220:443>
DocumentRoot /home/solardirect/www/shop.solardirect.com/html
ServerName shop.solardirect.com

 

and

CONFIGURE>PHP

 define('HTTP_SERVER', 'https://shop.solardirect.com'); 
define('HTTPS_SERVER', 'https://shop.solardirect.com');

 

AND...

it works!!!!!

 

My problem before was I forgot to add the /html to the end of the Root address for the port 80, so I was getting a page not found error.

 

Thanks guys!!!

Boom... Big butta boom.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...