-
-
Notifications
You must be signed in to change notification settings - Fork 883
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
Support Dynamic Modules #766
Comments
+1 |
Maybe we could use nginx -V output to set a param or params on whether it was built with dynamic modules or not (though since it's per module, don't know how granular we'd want to get about that), but with the various different "flavors" of nginx packages that are supported, and the various platforms, I'm imagining this could get pretty gnarly. I have seen cases where using relative path in the include didn't work as it's supposed to either (and ended up having to use full module path, which would be even nastier to code). I guess we'd have params like $enable_geoip_module or similar, and then have some data in params that sets the package names for various platforms / repos?
|
@Zophar78 @wyardley I've installed nginx with this module (puppet-nginx), then I've installed the geoip module as a separate package. What I've installed:
Then I've loaded the module and the GeoIP.dat binary database. The thing is that nginx starts successfully but $geoip_country_code isn't set. This is my nginx -V:
The only thing that I don't have and you mentioned is: Could anyone help? |
@marcgascon: for the Passenger flavor of the package, it's already compiled in. I think for other versions the GeoIP module might be a separate package if it's available at all. I'm not sure what the package name is for Ubuntu / Debian, you could try libnginx-mod-http-geoip or similar. |
Don't worry, my fault I forget to add an nginx directive to geolocate the client IP and not the ELB one. |
I had to add the following to make dynamic modules work right in Ubuntu 18.04: class {'nginx': |
nginx 1.9.11 introduces support for dynamic module loading. Downstream module support is probably a little ways off, but it's easy to add support in this module!
http://nginx.org/en/docs/ngx_core_module.html#load_module
http://mailman.nginx.org/pipermail/nginx-devel/2016-February/007874.html
The text was updated successfully, but these errors were encountered: