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

Not working #12

Open
scippio opened this issue Jan 16, 2019 · 4 comments
Open

Not working #12

scippio opened this issue Jan 16, 2019 · 4 comments

Comments

@scippio
Copy link

scippio commented Jan 16, 2019

Sorry, I don't have any details, but it's not working with any Caddy version...

@aablinov
Copy link
Owner

Thanks for the report I will see soon

@scippio
Copy link
Author

scippio commented Jan 24, 2019

I reported to caddy: caddyserver/caddy#2441

@aablinov
Copy link
Owner

@scippio I checked and all work's fine. I don't understand your Caddyfile try it make simple, like this:

YOU_DOMAIN.COM {
    geoip /Downloads/GeoLite2-City.mmdb
    proxy / localhost:3000 {
     header_upstream Country-Code {geoip_country_code}
    }
}

@scippio
Copy link
Author

scippio commented Jan 25, 2019

You using proxy .. it's not simple as my Caddyfile... Try it without proxy like me (I'm using your github example (1)):

YOU_DOMAIN.COM {
    tls off
    root /srv/html
    geoip /Downloads/GeoLite2-City.mmdb
    header Country-Code {geoip_country_code}
}

What version of Caddy you use? I tried every versions... and compile source and never worked.. + nor official Caddy from there https://caddyserver.com/download not working with geoip.
I'll try it with proxy like you and report result.

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