Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Nginx How to add modules
PostPosted: Thu Aug 13, 2015 11:29 pm 
Offline
Senior Newbie
User avatar

Joined: Wed Aug 12, 2015 9:07 am
Posts: 9
Hello I follow this guide:

https://www.linode.com/docs/websites/ng ... r-debian-8

And Install Nginx from a Source Distribution my problem is when I check my nginx version using sudo /opt/nginx/sbin/nginx -V

nginx version: nginx/1.9.3
built by gcc 4.9.2 (Debian 4.9.2-10)
built with OpenSSL 1.0.1k 8 Jan 2015
TLS SNI support enabled
configure arguments: --prefix=/opt/nginx --user=nginx --group=nginx --with-http_ssl_module --with-ipv6

it turns out I don't have the modules I need like ngx_http_stub_status_module and ngx_http_realip_module??

I'm new to linux and nginx can you give me tips on how to do it?

I've done some research it turns out that I might need to reinstall the whole thing but don't want to do it as much as possible.


Top
   
PostPosted: Fri Aug 14, 2015 8:09 am 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
Nginx modules are added at build time. To include those modules you'll need to add them to the ./configure line and and redo the 'make' and 'make install'. In the source directory, you'd do something like:

make clean
./configure (... list of desired options and modules)
make
make install

You'll find a complete list of modules here: http://wiki.nginx.org/Modules

Alternately you can install nginx from the Debian repositories. To do this you should first remove all traces of the source build install. The Debian repository will install nginx 1.6.

Advantage of installing the Debian version is ease of updates (apt-get update && apt-get upgrade will take care of it). Disadvantage is the absence of new features found in more recent nginx versiosn. This is a disadvantange only if you need those new features.

If you use the source installation, you'll need to watch for new updates and manually re-install when a new version is released --this is particularly important when an update contains security fixes.

_________________
sleddog


Top
   
PostPosted: Tue Aug 18, 2015 5:59 am 
Offline
Senior Newbie
User avatar

Joined: Wed Aug 12, 2015 9:07 am
Posts: 9
I end up rebuilding and installing it using the repositories its a legacy version but I'm ok with it. thanks for your advice sleddog :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group