Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

SSL Configuration

Locked

Started by crazycucumber on 26 Sep 2006, 2:49 PM · Views: 2,084

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
26 Sep 2006, 2:49 PM
#1
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Post #1 by crazycucumber

Hi can someone help me or point me to a thread that answes this:

I have just moved my test site onto a live server ( but still in a sub directory as not fully live till friday ) and cant get the SSL bit to work :-

I have put the whole site in HTTP://www.mydomain.com/NEWSHOP

and in HTTPS://mydomain.com/ (The client was not using his HTTPS area so I could use the root of it. )

My Configure.php files look like this :-

 
 define('HTTP_SERVER', 'http://www.mydomain.com/newshop');
  define('HTTPS_SERVER', 'https://www.mydomain.com');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'true);
..........................
define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');


// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/httpd/vhosts/mydomain.com/httpdocs/newshop/');

and the admin one is a bit like :

  */
  define('HTTP_SERVER', 'http://www.mydomain.com/newshop');
  define('HTTPS_SERVER', 'https://www.mydomain.com');
  define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com/newshop');
  define('HTTPS_CATALOG_SERVER', 'https://www.mydomain.com');

  // Use secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'false');
  define('ENABLE_SSL_ADMIN', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_ADMIN', '/admin/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/');

  define('DIR_WS_IMAGES', 'images/');


// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_ADMIN', '/home/httpd/vhosts/www.mydomain.com/httpdocs/newshop/admin/');
  define('DIR_FS_CATALOG', '/home/httpd/vhosts/www.mydomain.com/httpdocs/newshop/');

The shop bit works ok , but soon as you go to sign in , it usses the SSL area or HTTPS :// and goes back to start trying to install zencart again ( accept ive renamed zc_install )

Probably really obvious , but im a bit new to SSL setups , should I have a complete mirror of zen in my https folder ? I have at the moment with all configure.php files the same too.

Sorry for the length of this one !

Cheers

Crazy......

Various Zen cart sites !

26 Sep 2006, 2:55 PM
#2
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Post #2 by tinas

You should just point your https:// to the same directory. No need for two installs.

if your URL is http://domain.com/newshop then your secure URL is https://domain.com/newshop

Make sure that you enter it matching your certificate (if the certificate is for www. then use that - if it isn't then don't) otherwise people will get a popup similar to an error when they attempt to access the secure portions of the site.

Hope that helps.

When the world gets in my face I say Have A Nice Day.

26 Sep 2006, 8:37 PM
#3
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Post #3 by crazycucumber

I have asked the host if they can do this , in the mean time , you should be able to have the secure in a differnet place shouldn't you ? Why does zen redirect to the install when i go to SSL HTTPS ?

Thanks for help

Various Zen cart sites !

26 Sep 2006, 8:51 PM
#4
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Post #4 by tinas

Because Zen isn't installed where you are pointing it to. That's why it's looking for the installer.

When the world gets in my face I say Have A Nice Day.

27 Sep 2006, 12:32 AM
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #5 by vger

Yes, you can have a copy of zen cart in a separate 'secure' folder if you like, provided that the configure.php files are set up correctly and all necessary files and folders are copied over (including the configure.php files).

However, as pointed out, it should not be necessary, and just makes life a little more difficult.

Vger