Guest Posted January 14, 2005 Posted January 14, 2005 Hi there, I had the catalog working, moved the admin to https and started having problems, maybe interpretted a previous advice to have checkout on https as well? Can someone give me some baby advice on how to script the configure files to have the catalog on regular http and admin on https. catalog\includes\configure.php define('HTTP_SERVER', 'http://www.newlifehealthcare.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://vault2.secured-url.com/NLHCSSL'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.newlifehealthcare.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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/fhlinux198/n/newlifehealthcare.co.uk/user/htdocs/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); mycp(new admin)\includes\configure.php define('HTTP_SERVER', 'https://vault2.secured-url.com/NLHCSSL'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.newlifehealthcare.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://vault2.secured-url.com/NLHCSSL'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_WS_ADMIN', '/mycp/'); // absolute path required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_DOCUMENT_ROOT', '/home/fhlinux198/n/newlifehealthcare.co.uk/user/htdocs/catalog/'); // where the pages are located on the server define('DIR_FS_ADMIN', ''); // absolute pate required define('DIR_FS_CATALOG', ''); // absolute path required define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); With Greatful Thanks, Alistair
Guest Posted January 14, 2005 Posted January 14, 2005 catalog/includes/configure.php change the matching to this: define('HTTPS_COOKIE_DOMAIN', 'vault2.secured-url.com/NLHCSSL'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); admin: define('DIR_FS_DOCUMENT_ROOT', '/home/fhlinux198/n/newlifehealthcare.co.uk/user/htdocs'); // where the pages are located on the server go make sure you admin even works, change the top line: define('HTTP_SERVER', 'https://vault2.secured-url.com/NLHCSSL'); // eg, http://localhost - should not be empty for productive servers to: define('HTTP_SERVER', 'http://www.newlifeleahcare.co.uk'); // eg, http://localhost - should not be empty for productive servers once you can make sure you are into the admin properly then we can see if ssl on admin works
Guest Posted January 14, 2005 Posted January 14, 2005 When I click on a pg in the admin it now redirects to the http site looking for the admin folder there. http://www.newlifehealthcare.co.uk/mycp/co...ab401c93fd0ac34 - not found When I click on a checkout pg or log in I get open_basedir restriction in effect errors, not sure which to tackle first? Do I have this bit correct, on the ssl server I have a folder scatalog which has checkout*.php pages in it? Current configure files look like: Thanks for help, please send more, ally Catalog/includes/configure define('HTTP_SERVER', 'http://www.newlifehealthcare.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://vault2.secured-url.com/NLHCSSL'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.newlifehealthcare.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'vault2.secured-url.com/NLHCSSL'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/scatalog/'); 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/fhlinux198/n/newlifehealthcare.co.uk/user/htdocs/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Admin includes configure define('HTTP_SERVER', 'http://www.newlifehealthcare.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.newlifehealthcare.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://vault2.secured-url.com/NLHCSSL'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_WS_ADMIN', '/mycp/'); // absolute path required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_DOCUMENT_ROOT', '/home/fhlinux198/n/newlifehealthcare.co.uk/user/htdocs'); // where the pages are located on the server define('DIR_FS_ADMIN', ''); // absolute pate required define('DIR_FS_CATALOG', ''); // absolute path required define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
Recommended Posts
Archived
This topic is now archived and is closed to further replies.