fiorix/freegeoip

404 when deployed under context path

Closed this issue · 3 comments

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?

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.

Ok haven't installed the api locally. Thanks

This works too: docker run fiorix/freegeoip --help