跳至內容

Static IP address being used instead of domain - getting SSL error

0

Hey folks, reasonably regularly I am getting an SSL error on a clients Wordpress site hosted on Lightsail casuing images to not show. The cause seems to be the image src is using the server static IP instead of the client's domain name.

eg. <img src="https://123.123.1.1/wp-content/uploads/image.jpg"> appears in code, which should be <img src="https://mydomain.com/wp-content/uploads/image.jpg">

I have checked the wp-config.php and the site url is correctly set as the domain name. Any ideas why the IP address is being used instead of the domain name?

已提問 2 年前檢視次數 346 次

1 個回答
0
專家

已回答 2 年前

專家

已審閱 2 年前

  • Hi there, yes the client's domain name is entered correctly in those two fields. This appears to make no difference to the issue. The DNS is with Cloudflare if this may be an issue?

  • One thing I did notice... the siteurl and home values in wp_options were set to http://127.0.0.1. So the wp-config values were correct but not the database?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。