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

generating dynamic module #3

Open
Lewiscowles1986 opened this issue Dec 29, 2016 · 3 comments
Open

generating dynamic module #3

Lewiscowles1986 opened this issue Dec 29, 2016 · 3 comments

Comments

@Lewiscowles1986
Copy link

https://www.nginx.com/resources/wiki/extending/converting/

Be really nice to have 😉

@Lewiscowles1986
Copy link
Author

Lewiscowles1986 commented Dec 29, 2016

okay so far so good, but I suspect this might operate currently by changing core nginx functionality as I'm not getting a module (happy to have my technique corrected)

sudo mkdir -p /opt
sudo chmod 777 /opt
git clone https://github.com/jiaz/nginx-http-json-log
sudo apt install libjansson-dev build-essentials
apt-get source nginx-full
cd /opt/nginx-1.*
./configure --add-dynamic-module=/opt/nginx-http-json-log/ --without-http_rewrite_module --without-http_gzip_module
make modules

I'm expecting to find a .so file inside /opt/nginx-1.*/

I'll try to dig in at some point, hopefully if someone else see's this and can help before me it helps everyone interested so 👍 if that's anyone reading

@Lewiscowles1986
Copy link
Author

right just to save everyone time. Nginx for ubuntu xenial uses fPIE which makes shared modules for nginx impossible to compile... you have to custom compile which is terrible, I'll check it out when I have more time. For now https://github.com/CODESIGN2/nginx-http-json-log/tree/compile-as-module has work to date (the module compiles but won't run because of different build-flags 😢 )

@mikaello
Copy link

For others coming here, check out the fork https://github.com/nginx-modules/ngx_http_json_log_module , which seem to have implemented this feature.

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