404 when deployed under context path
Closed this issue · 3 comments
jaecktec commented
We are deploying the Docker Image and have to map it to a context path (domain.com/geoip) but then we get a 404. Is there a way to get this working properly?
fiorix commented
You have to inform the freegeoip web server that you have an prefix path in your API.
That is the very first option described on the help :)
$ ./freegeoip -h
Usage of ./freegeoip:
-api-prefix string
URL prefix for API endpoints (default "/")
Closing this but happy to reopen if you have any more troubles.
jaecktec commented
Ok haven't installed the api locally. Thanks
fiorix commented
This works too: docker run fiorix/freegeoip --help