Post by brandon.patton » Mon Apr 25, 2011 8:32 pm

Hi all,

Do to our internal configuration, I need Opencart to use a different SSL port when accessing HTTPS. I've gone into the Admin config.php file and changed the url to include the new port (in this case, 8383), so our URL is https://(storeurl):8383/admin.

However, while the Admin interface works perfectly with this new port, when I go into the cart itself and hit the checkout button, thus switching the site over to SSL, the new port number is not entered in the URL and the page fails to load. Is there another location I need to make this configuration change to? Am I looking at doing a URL rewrite in IIS to support this?

Thanks!


Posts

Joined
Fri Apr 01, 2011 3:14 am

Post by fido-x » Mon Apr 25, 2011 9:16 pm

Don't know if this will work, as I don't use SSL (no requirement for it in my case). Try replacing the following in "index.php" (line 72):

Code: Select all

define('HTTPS_SERVER', 'https://' . substr($config->get('config_url'), 7)); 
with:

Code: Select all

define('HTTPS_SERVER', 'https://' . rtrim(substr($config->get('config_url'), 7), '/') . ':8383/'); 
and see how you go.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by brandon.patton » Mon Apr 25, 2011 9:23 pm

Fido-x,

That worked beautifully! You rock!

Thanks again!


Posts

Joined
Fri Apr 01, 2011 3:14 am

Post by fido-x » Mon Apr 25, 2011 9:31 pm

Glad to hear it worked.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: No registered users and 49 guests