RyanSmith Posted December 16, 2004 Posted December 16, 2004 I'm having trouble with having the Admin folder in the SSL Directory. I have a strange setup at the moment where Apache serves out my Non SSL pages through port 8080 ie http://localhost:8080/cat/catalog and IIS serving out my SSL pages through port 80 ie http://localhost/ Everything works fine for the catalog. The user gets vectored off to the SSL server during checkout just as expected, however when I login to the admin site, all the links get prefixed with http://localhost:8080 ie http://localhost:8080https://localhost/adm...iguration&gID=1 I'm not sure whats wrong with my configuration. Here is what my config file looks like: define('HTTP_SERVER', 'http://localhost:8080'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://localhost/'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? And the the admin config looks like this: define('HTTP_SERVER', 'http://localhost:8080'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://localhost:8080'); define('HTTPS_CATALOG_SERVER', 'https://localhost'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/Apache Group/Apache2/htdocs/cat/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', 'https://localhost/admin'); // absolute path required define('DIR_FS_ADMIN', 'C:/Inetpub/SSLDummy/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/cat/catalog/'); // absolute path required define('DIR_FS_CATALOG', 'C:/Program Files/Apache Group/Apache2/htdocs/cat/catalog/'); // absolute path required Where am I messing up at? Thanks for you help. osCommerce ROCKS! by the way. Great job everyone. osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
♥Vger Posted December 16, 2004 Posted December 16, 2004 Your have defined non-ssl as 'http://localhost:8080' so, if ssl is using port 80, then why not use this 'https://localhost:80' Vger
RyanSmith Posted December 17, 2004 Author Posted December 17, 2004 Your have defined non-ssl as 'http://localhost:8080' so, if ssl is using port 80, then why not use this 'https://localhost:80' Vger <{POST_SNAPBACK}> Nope that didn't work either. Now I ended up getting: http://localhost:8080//localhost:80/catalo...63c7f2c8bda22e8 So it didn't change it's behavior. Any other thoughts? osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
♥Vger Posted December 17, 2004 Posted December 17, 2004 Normally if you use a folder for osCommerce, the default being 'catalog' (which shows in your file pathways) then the 'admin' folder is within the catalog folder. If that is the case then this file pathway is incorrect (it's partly wrong anyway) define('DIR_WS_ADMIN', '/catalog/admin'); // absolute path required Vger
RyanSmith Posted December 17, 2004 Author Posted December 17, 2004 Normally if you use a folder for osCommerce, the default being 'catalog' (which shows in your file pathways) then the 'admin' folder is within the catalog folder. If that is the case then this file pathway is incorrect (it's partly wrong anyway) define('DIR_WS_ADMIN', '/catalog/admin'); // absolute path required Vger <{POST_SNAPBACK}> The admin is located on a different Server. It's a compleatly different domain. This is most likely how it will be on our live server. The catalog works fine with this method, so I figure that I can do it with the admin the same way. I think that I can pick through the code and fix it there, but I think that it's just a problem with the config files, so I don't want to make a bunch of changes when it's just my configuration. osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.