mmm. I thought so too. Double checked both and they are fine.
interesting thing is:
sudo curl http://gateway.api1com
{
"error": "Authorization field missing"
}
sudo curl http://gateway.api2.com/tyk/keys
{
"error": "Authorization field missing"
}
sudo curl http://127.0.0.1:10010
404 page not found
Both of the apis have this configuration in the NGINX configuration:
upstream tyk {
server 127.0.0.1:10010;
}
and in the sites-available file:
location / {
rewrite /(.*) /dbe0a5556ac741e5621a7fde48e3cdbb/$1 break;
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://tyk/;
}
I am sure it is something small but it is super frustrating because I cannot figure out for the life of me what it is that I am missing.
Thank you as always for your help Martin. Worth your weight in BItCoin.