Closed robachmann closed 4 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/169805233
The labels on this github issue will be updated when the story is started.
There is definitely some confusion in the wording used in the documentation. There are 2 kinds of "built-in" modules in this buildpack: 1) modules compiled into the nginx binary and always available (like ngx_http_realip_module), and 2) modules compiled as libraries and included in the buildpack that can be dynamically loaded at runtime (like ngx_stream_module).
We will add some clarification to the docs to outline this difference. As for a fix here, you shouldn't need to load the ngx_http_realip_module
at all, just use it in your existing nginx.conf
.
Cheers!
Those updated docs are in https://github.com/cloudfoundry/docs-buildpacks/pull/255.
With that update, I will consider this issue closed unless there is a further problem.
Thank you so much for clearing things up, @ryanmoran :-)
What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running
cf curl /v2/info && cf version
? 2.141.0 6.47.2+d526c2cb3.2019-11-05What version of the buildpack you are using? 1.1.1
If you were attempting to accomplish a task, what was it you were attempting to do? Filter IP addresses based on XFF header. Therefore, using the
ngx_http_realip_module
module.What did you expect to happen? The docs state I should be able to simply insert the module name for built-in modules without including the necessary
.so
files: https://docs.cloudfoundry.org/buildpacks/nginx/index.html#loading-modules Reading the NginxRecipe, I see it is built with--with-http_realip_module
.I cloned this repo, used the fixtures/mainline example and just added this first line to the
nginx.conf
:Unfortunately, the necessary file isn't found upon pushing the app.
What was the actual behavior?
Please confirm where necessary:
If I'm doing something wrong, please point me into the right direction. Thank you very much!