This is a discussion on admin login and https within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi folks, i have used .htaccess to protect the /catalog/admin directory. I have tried logging in under https and i ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi folks, i have used .htaccess to protect the /catalog/admin directory. I have tried logging in under https and i can. The problem is the links on the admin interface are http and not https. Should I be able to or is there a way to stay on the secure server or https the whole time you are in the admin?
__________________ Have a GREAT day! MikeF |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| Just a friendly and hopeful bump. Quote:
__________________ Have a GREAT day! MikeF |
|
#3
| ||||
| ||||
| In the /admin/includes/configure.php change the following to say https://yoursite.com : Code: define('HTTP_SERVER', 'https://yoursite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
__________________ Michael Sasek osCMax Developer
|
|
#4
| |||
| |||
| I am having the same problem with https except I have it in the config pointing to https. If I type the address with https in the browser i get the ssl lock icon. however if i just type the address it doesn't go into ssl mode. I read one of the posts that said make the regular server point to ssl and it will work, but that didn't work for me either. |
|
#5
| |||
| |||
| Yes I have checked that a couple of times. I have set correctly in that file and the catalog/includes/configure.php Code: define('HTTP_SERVER', 'http://store.agileservers.net/catalog'); // eg, http://localhost - should not be NULL for productive servers
define('HTTPS_SERVER', 'https://secure10.vosn.net/~agileser/store/catalog'); // eg, https://localhost - should not be NULL for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
what do you think? Quote:
__________________ Have a GREAT day! MikeF |
|
#6
| ||||
| ||||
| MikeF, If the example you posted is the code you have in your actual config, you have NOT done what I said. Look closely, I have changed the HTTP_SERVER to point to a https link. Do it and it will work for you. You have to change the : Code: define('HTTP_SERVER', 'http://store.agileservers.net/catalog');
Code: define('HTTP_SERVER', 'https://secure10.vosn.net/~agileser');
__________________ Michael Sasek osCMax Developer
|
|
#7
| |||
| |||
| Thank you very much for all your help! Here are my settings so maybe this will help others as well. At this minute things seem to be working ok. For catalog/admin/includes/configure.php Code: define('HTTP_SERVER', 'https://secure10.vosn.net/~agileser'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
define('HTTP_CATALOG_SERVER', 'http://store.agileservers.net/catalog');
define('HTTPS_CATALOG_SERVER', 'https://secure10.vosn.net/~agileser');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/agileser/public_html/store'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/home/agileser/public_html/store/catalog/admin/'); // absolute path required
define('DIR_WS_CATALOG', '/'); // absolute path required changed from /catalog/ on 9:51 PM 1/24/2003 by mikef
define('DIR_FS_CATALOG', '/home/agileser/public_html/store/catalog/'); // absolute path required
Code: define('HTTP_SERVER', 'http://store.agileservers.net/catalog'); // eg, http://localhost - should not be NULL for productive servers
define('HTTPS_SERVER', 'https://secure10.vosn.net/~agileser/store/catalog'); // eg, https://localhost - should not be NULL for productive servers
define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure?
define('DIR_WS_CATALOG', '/'); // absolute path required changed from /catalog/ on 9:51 PM 1/24/2003 by mikef
__________________ Have a GREAT day! MikeF |
|
#8
| |||
| |||
| Quote:
Not Found "The requested URL /~agileser/catalog/admin/categories.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." I checked and that file, categories.php is in that dir. For the above error this was the link in the admin interface. https://secure10.vosn.net/~agileser/...ed_box=catalog My settings for includes/admin/configure.php are: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'https://secure10.vosn.net/~agileser'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://store.agileservers.net/catalog'); define('HTTPS_CATALOG_SERVER', 'https://secure10.vosn.net/~agileser'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/agileser/public_html/store'); // where the pages are located on the server define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/agileser/public_html/store/catalog/admin/'); // absolute path required define('DIR_WS_CATALOG', '/'); // absolute path required changed from /catalog/ on 9:51 PM 1/24/2003 by mike foate define('DIR_FS_CATALOG', '/home/agileser/public_html/store/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_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/'); My settings for /includes/configure.php are: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://store.agileservers.net/catalog'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://secure10.vosn.net/~agileser'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/'); // absolute path required changed from /catalog/ on 9:51 PM 1/24/2003 by mike foate define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname 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', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', '/home/agileser/public_html/store'); define('DIR_FS_CATALOG', '/home/agileser/public_html/store/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
__________________ Have a GREAT day! MikeF |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| https:// Admin redirects to http:// | driwashsolutions | osCMax v2 Installation issues | 3 | 01-23-2006 07:41 PM |
| Admin Login Problem - my customer can't login, I can | pram0310 | osCMax v1.7 Installation | 2 | 10-29-2004 11:46 AM |
| Well crap... admin login not allowing login-no errors | tauras911 | osCMax v1.7 Installation | 2 | 07-07-2004 12:12 AM |
| https when accessing Admin pages | NickW | osCommerce 2.2 Installation Help | 1 | 02-09-2004 06:32 AM |
| admin login goes https to http??? | john- | osCMax v1.7 Discussion | 2 | 12-23-2003 07:19 AM |