I have two physical machines. IP addresses are 192.168.0.10 and 192.168.0.11 respectively.
Start consul sever and fabio on 192.168.10.
Start the consul client and http server on 192.168.0.11. The json registered to consul's service is as follows:
{"service": {"id": "sampleservice","name":"sampleservice","tags": ["urlprefix-/foo"],"address": "192.168.0.11","port": 8088,"checks": [{"deregisterCriticalServiceAfter": "5m","http": "http://192.168.0.11:8088/foo","interval": "10s"}]}}
Http service is running normally in consul.
But visit http://192.168.0.10:9999/foo, has been no response, there is no log output.
I have two physical machines. IP addresses are 192.168.0.10 and 192.168.0.11 respectively.
Start consul sever and fabio on 192.168.10.
Start the consul client and http server on 192.168.0.11. The json registered to consul's service is as follows:
{"service": {"id": "sampleservice","name":"sampleservice","tags": ["urlprefix-/foo"],"address": "192.168.0.11","port": 8088,"checks": [{"deregisterCriticalServiceAfter": "5m","http": "http://192.168.0.11:8088/foo","interval": "10s"}]}}
Http service is running normally in consul.
But visit http://192.168.0.10:9999/foo, has been no response, there is no log output.