Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoIP issue #3

Closed
janiosarmento opened this issue Dec 8, 2017 · 1 comment
Closed

GeoIP issue #3

janiosarmento opened this issue Dec 8, 2017 · 1 comment

Comments

@janiosarmento
Copy link
Contributor

When I try using your nginx.conf there is an error due to GeoIP data file:

# nginx -t
Error Opening file /usr/share/GeoIP/GeoLitecityv6.dat
nginx: [emerg] GeoIP_open("/usr/share/GeoIP/GeoLitecityv6.dat") failed in /etc/nginx/nginx.conf:38
nginx: configuration file /etc/nginx/nginx.conf test failed

I tried downloading the data file from Maxmind, but I was unable to find the correct archive.

As a workaround I commented the two GeoIP directives and everything is fine enough. 👍

@VirtuBox
Copy link
Owner

Yes, I have notice this error and I have added comments before this lines with a quick tutorial about how to use GeoIP module with Nginx

https://gist.github.com/VirtuBox/9ed03c9bd9169202c358a8be181b7840

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants