Author Topic: Issues with SNI, hostname and cart  (Read 7417 times)

Offline loudmylarbags

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Issues with SNI, hostname and cart
« on: February 03, 2019, 11:52:46 AM »
We are having a random issue, our site will revert back to the IP for the hostname.

To fix it I have to save something (like template or product) and it fixes it, but it will always revert back.

Example, clicking any link when it's broken will result in 1.1.1.1/blah/blah.php or w/e instead of domain.com/blah/blah.php

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Issues with SNI, hostname and cart
« Reply #1 on: February 03, 2019, 12:07:35 PM »
Check setting for your domain. Possibly you have IP address in there.

https://abantecart.atlassian.net/wiki/spaces/AD/pages/5832828/Store+URLs+SSL
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline loudmylarbags

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #2 on: February 03, 2019, 06:39:04 PM »
Check setting for your domain. Possibly you have IP address in there.



Nope not that, these seems like some kinda glitch in the software somewhere.

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1798
  • Karma: +520/-7
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #3 on: February 03, 2019, 07:19:47 PM »
??  Did you build your site up using an IP address before changing your DNS to the current host?
I see this happen when we build out sites using IP address prior to transferring -  and we change out our local user to the IP address,   if we fail to clear the cache on our PCs and revert the local host to the domain name.




Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Issues with SNI, hostname and cart
« Reply #4 on: February 03, 2019, 09:44:22 PM »
Try to clear cache and make sure that is actually cleared.

Setting for URL is the only place in AbanteCart that control this. If both HTTP and HTTPS URLs are correct in the setting, there must be something else on your server side.

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline loudmylarbags

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #5 on: February 04, 2019, 11:39:12 AM »
??  Did you build your site up using an IP address before changing your DNS to the current host?
I see this happen when we build out sites using IP address prior to transferring -  and we change out our local user to the IP address,   if we fail to clear the cache on our PCs and revert the local host to the domain name.

Nope, always the url. Apache is gucci all the configs are good. I run 10 other sites on the same server. No issues. It's def a config issue of sorts since saving something fixes it. Is there a manual way to clear the cache to I can make sure?

I have cleared the cache in the back in 10x times.

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1798
  • Karma: +520/-7
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #6 on: February 04, 2019, 12:27:33 PM »
You using  CDN?


Offline loudmylarbags

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #7 on: February 05, 2019, 07:27:12 PM »
You using  CDN?

No, and it just happened again. Something with the config is stuck. I know 100% its not the server.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5798
  • Karma: +274/-2
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #8 on: February 06, 2019, 01:38:55 AM »
Hi.

Clear Abantecart cache, clear browser cache, check for redirect in your .htaccess file

Offline loudmylarbags

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #9 on: February 06, 2019, 04:00:53 PM »
Hi.

Clear Abantecart cache, clear browser cache, check for redirect in your .htaccess file


These are all things that have been stated and done. None of these would make it randomly happen and then a save to anything fix it. This leads to software issue.

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1798
  • Karma: +520/-7
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #10 on: February 06, 2019, 04:40:56 PM »
since you said you have other installations running okay,  is this installation the same version as the others? I am assuming that are AbanteCart installations.
what have you done differently with this one?  Any third party extensions?
And code changes you have made that is different then the others?
Since you are rather adamant that it is software,  and those of use who have dozens and dozens of installations think it is more likely there a different issue or something that has been introduced into this installation and not the others. Perhaps there was a glitch when you installed this?  When did you introduce the IP address into your URL? 

Does this happen with all browsers?  Does this happen on a PC  that hasn't been to your site previously?
Have you compared config and rewrites on the problem site to the others?







Offline loudmylarbags

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #11 on: February 07, 2019, 01:41:03 PM »
since you said you have other installations running okay,  is this installation the same version as the others? I am assuming that are AbanteCart installations.
what have you done differently with this one?  Any third party extensions?
And code changes you have made that is different then the others?
Since you are rather adamant that it is software,  and those of use who have dozens and dozens of installations think it is more likely there a different issue or something that has been introduced into this installation and not the others. Perhaps there was a glitch when you installed this?  When did you introduce the IP address into your URL? 

Does this happen with all browsers?  Does this happen on a PC  that hasn't been to your site previously?
Have you compared config and rewrites on the problem site to the others?

I have other software running, wordpress, joomla etc. This is happening on all browsers and computers. Client report it to me when it happens and I can confirm its down.

I have turned off cache and now it hasn't happened in 24 hrs. I have been asking where this is stored or how it could be causing it. Any ideas would be great.

a grep of the database and files show (0 localhost or 0 ip entry's in either) so I know it's not coded or hardcoded somewhere.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5798
  • Karma: +274/-2
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #12 on: February 08, 2019, 12:02:30 AM »
Did you change domain name or server DNS recently? Or maybe a new hosting plan?

Offline loudmylarbags

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #13 on: February 08, 2019, 11:32:50 AM »
Did you change domain name or server DNS recently? Or maybe a new hosting plan?

Sigh are you guys even reading this? The domain is on my own server, and always had the same domain.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5798
  • Karma: +274/-2
    • View Profile
Re: Issues with SNI, hostname and cart
« Reply #14 on: February 11, 2019, 12:14:34 AM »
Hi. Can you share your domain ?

 

Powered by SMFPacks Social Login Mod