Here's part of what my zc 1.5.5a admin config has in it (with actual names changed):
Code:
* Enter the domain for your Admin URL. If you have SSL, enter the correct https address in the HTTP_SERVER setting, instead of just an http address.
*/
define('HTTP_SERVER', 'https://myservernumberoncamelot-hosting.com/~myusername');
/**
* Note about HTTPS_SERVER:
* There is no longer an HTTPS_SERVER setting for the Admin. Instead, put your SSL URL in the HTTP_SERVER setting above.
*/
/**
* Note about DIR_WS_ADMIN
* The DIR_WS_ADMIN value is now auto-detected.
* In the rare case where it cannot be detected properly, you can add your own DIR_WS_ADMIN definition below.
*/
/**
* Enter the domain for your storefront URL.
* Enter a separate SSL URL in HTTPS_CATALOG_SERVER if your store supports SSL.
*/
define('HTTP_CATALOG_SERVER', 'https://myservernumberoncamelot-hosting.com/~myusername');
define('HTTPS_CATALOG_SERVER', 'https://myservernumberoncamelot-hosting.com/~myusername');
/**
* Do you use SSL for your customers login/checkout on the storefront? If so, enter 'true'. Else 'false'.
*/
define('ENABLE_SSL_CATALOG', 'false');
/**
* These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
* These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
* They should always start and end with a slash ... ie: '/' or '/foldername/'
*/
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
/**
* This is the complete physical path to your store's files. eg: /var/www/vhost/accountname/public_html/store/
* Should have a closing / on it.
*/
define('DIR_FS_CATALOG', '/home/myusername/public_html/');
Note that myusername isn't my store name or store url - it's my username/account name on the shared server at my hosting company.
Note also that myusername is preceded with a '~' in the first three instances, but not the last. I have no idea why, but this is what works ;o)
And also note that my http server is also defined by me with https, not http.
For the enable ssl - if you set that to true, then the site will switch to ssl only on certain pages determined by the zen cart - ie shopping cart, checkout - the higher risk pages. For everything else it goes to non ssl. So to make your entire site ssl you set that to false.
I got these instructions from a faq on my server's web site. Didn't know/understand about it for years. Even then the instructions were difficult for me to follow but eventually got it sorted with many trials and errors. What a pain!
The set up above gives me ssl for everything EXCEPT the landing main page if someone types http: when looking for it. In that case they land on a non-ssl main page but anything they click thereafter is ssl. I resolved this last issue with help from the forum - creating an htaccess redirect following the example in the 'extras' folder of the zencart file package.
My specific server name, user name etc are all visible on my c-panel.
Bookmarks