I have a docker compose file and an nginx.conf file. The nginx is able to route the request correctly in the below given case
events {}
http {
upstream weaviate {
server weaviate:5555;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
proxy_pass http://weaviate;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
break;
}
location /health-check {
return 200;
access_log off;
}
}
}
In this case, calling localhost route me to the weaviate page. But, if make a small change so that I can call localhost/weave, it is not working.
events {}
http {
upstream weaviate {
server weaviate:5555;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
location /weave {
proxy_pass http://weaviate;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
break;
}
location /health-check {
return 200;
access_log off;
}
}
}
It is giving me {"code":404,"message":"path /weave was not found"}
What difference does
location /weave/ {
proxy_pass http://weaviate/;
makes