Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've installed Nginx on Ubuntu with apt-get. Now i need to somehow add the module:

Their install suggests to recompile Nginx with the module: https://github.com/wandenberg/nginx-push-stream-module/blob/master/README.textile

How can i do that when i have installed Nginx with apt-get?

I want to keep all my current settings and just get the module in there some how

share|improve this question

2 Answers 2

There is a way to do it in Ubuntu!
You can rebuild Ubuntu's Nginx package - and include your module into it.
Then prevent automatic Nginx update with:

sudo aptitude hold nginx
sudo aptitude hold nginx-full

I have written an instruction for myself - My post about Nginx recompilation in Ubuntu with a new module

PS: I hope the link doesn't die very soon. Too lazy to copy-paste everything

share|improve this answer

There is no way to do that.

You need to recompile Nginx plus the module from source, like described in the Nginx Push Stream documentation.

It is not possible to do what you want because Nginx does not support DSO (Dynamic Shared Object) like Apache does. Nginx can't LoadModule since it's design is not for Dynamic Linked binary, it has to link modules during compile time and that is what we call a Statically Compiled (monolithic) binary. With Apache you can load external modules from .so files, but in Nginx you need to compiled the "sbin/nginx" binary with all modules in it, that's why you can't apt-get the module, you need to do some compiling work yourself. Happy hacking.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.