Hosted on Linux, Image url not working

10 ヶ月 前
Hi,
We have Hosted the NopCommerce4.50 version project on Linux, but after that, the Image URL stops working.
It adds server IP instead of store location in the image URL. ie: http://127.1.0.1:4000/images/thumbs/xyz-logo.png

Does anyone know how to fix this ?
Thanx
10 ヶ月 前
Hello Bhautik,

You can update store URL same as your IP that you set.
10 ヶ月 前
p.d.dobariya12 wrote:
Hello Bhautik,

You can update store URL same as your IP that you set.


Thanks for the reply, but that didn't worked.

Even I can see there are Shcedulers not working, its throwing an error.
Error 404. The requested page (/scheduletask/runtask) was not found  
Page URL : http://127.0.1.1:4000/scheduletask/runtask

So here also it is considering store URL as http://127.0.1.1:4000 instead of http://xyz.com

I think, the service _webHelper.GetStoreLocation() returning "http://127.0.1.1:4000" string always.  Don't know why.

The same was working fine in IIS.
2 日 前
Maybe you have problem with mixing content in your page.

Try edit nginx config file for your web page and after server_name statement put:
add_header 'Content-Security-Policy' "upgrade-insecure-requests";

Like this:

# Default server configuration
#
server {

    server_name   www.webpagename.com webpagename.com;
  
  add_header 'Content-Security-Policy' "upgrade-insecure-requests";