Image source is pointing to entirely different domain!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi there,

Friday we went live with our new website.

Today I visited the site and saw the logo image was missing.

It is pointing to http://xinyu388.com/content/images/thumbs/0000004.png

I have never heard of this domain. The website url is configured correctly and the image logo is also uploaded in configuration. Any ideas?

You can find our site at www.phokas.be
7 years ago
Okay this I can not explain. Nothing has changed in the configuration on our website and now it is correctly pointing to our (correct) domain.
7 years ago
BrickHunters wrote:
Okay this I can not explain. Nothing has changed in the configuration on our website and now it is correctly pointing to our (correct) domain.

There are a few posts about this on the forum like this one which has my explanation of how to replicate the issue. To solve it, make sure you have your host name specified in your IIS bindings. DON'T use a catch all blank binding like this:



IIS uses host header identification to route requests to the correct website. If you have a website with a blank binding then any requests to your web server with a host header value that doesn't match an explicit binding will be passed to the site with the blank binding.

This generally wouldn't cause a problem but nop uses the host header value to construct absolute paths to images (I don't know why it uses absolute paths to images when relative paths would be shorter and better but that's a separate issue). These absolute paths are cached by nop so that subsequent requests by other users will also be served with the incorrect image paths and the end user will see broken image links. This is an example of cache poisoning. The incorrect image paths are generally cached for an hour and then discarded which is why it seems to fix itself (because the majority of requests coming to your site are likely to have the correct host header).
7 years ago
Thanks Pete, this makes sense.

This is the first time we actually hosted a website on a dedicated server.
3 years ago
Hi All

I've got this issue at the moment on nopCommerce 4.3 running on Ubuntu and Nginx. The logo is pointing to a different domain name which is resolving to my IP address, but I think if the store was set to run on regular HTTP without SSL it would've displayed correctly without me even knowing that it is making use of a different domain name. This issue is that the store is using https and the foreign domain doesn't have an SSL cert so it fails to load. Is there any way to make sure that the store doesn't make use of foreign domain names firstly, and secondly if it does point to my domain that it doesn't use the IP address instead of the domain name?

Thanks
3 years ago
andrewp.haine wrote:
Hi All

I've got this issue at the moment on nopCommerce 4.3 running on Ubuntu and Nginx. The logo is pointing to a different domain name which is resolving to my IP address, but I think if the store was set to run on regular HTTP without SSL it would've displayed correctly without me even knowing that it is making use of a different domain name. This issue is that the store is using https and the foreign domain doesn't have an SSL cert so it fails to load. Is there any way to make sure that the store doesn't make use of foreign domain names firstly, and secondly if it does point to my domain that it doesn't use the IP address instead of the domain name?

Thanks


I've got a similar problem. Because our traffic goes through NAT, the browser is pointing to http://shop.domain.com/ but the server only sees traffic at http://servername.domain.com:81/. With the store url set to http://shop.domain.com/ the majority of the website works but so far I've noticed images, plugin configure links, and onepagecheckout fails to load correctly.

I have found mediasettings.useabsoluteimagepath which when I set to false fixes the images and are displaying correctly.

Plugin example, I'm on page http://shop.domain.com/Admin/Plugin/List which loads fine (except logos) but Facebook configure link is http://servername.domain.com:81/Admin/FacebookAuthentication/Configure all other configure links are also pointing to the server url.

I get the following error when going through onepagecheckout
VM84 jquery-migrate-3.1.0.min.js:2 JQMIGRATE: Migrate is installed, version 3.1.0
Navigated to http://shop.domain.com/cart
VM101 jquery-migrate-3.1.0.min.js:2 JQMIGRATE: Migrate is installed, version 3.1.0
Navigated to http://shop.domain.com/onepagecheckout
jquery-migrate-3.1.0.min.js:2 JQMIGRATE: Migrate is installed, version 3.1.0
jquery-3.4.1.min.js:2 POST http://servername.domain.com:81/checkout/OpcSaveBilling/ net::ERR_CONNECTION_TIMED_OUT

Because the shop.domain.com is not pass through to the server, I cannot set the IIS binding to that name.  

This is on a new install with nothing altered, other than absolute image option.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.