Support » Plugin: Simply Static » Checking if WordPress can make requests to itself from

  • I have installed wordpress on kubernetes
    So i have 2 docker container:
    nginx IP: 10.42.0.84
    php IP: 10.42.0.87

    when i navigate on http://www.my-site.com,
    the browser connect to nginx 10.42.0.84
    then nginx connect to php 10.42.0.87 on port 9000

    Now the problem on simply static is that this want connect to 10.42.0.87
    it doesn’t know that it must connect to 10.42.0.84

    it’s possibile set in the plugin the real ip ?

    Another solution would be to connect to the http://www.my-site.com domain name and not to the IP

    Can you tell me which function detects the ip ?
    in which file?

    I was thinking of temporarily forcing the right IP directly into the code

    • This topic was modified 5 months, 3 weeks ago by giancarlo74.
    • This topic was modified 5 months, 3 weeks ago by giancarlo74.
Viewing 1 replies (of 1 total)
  • This is not a Simply Static specific problem. When you execute wget http://www.my-site.com (or the curl equivalent) from the php container you probably won’t get a proper response. wget http://nginx will point to the right IP address, but I don’t think Nginx will handle that domain. Maybe you can change the Nginx configuration.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.