Nginx 1.9.11 released

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
Nginx-1.9.0 mainline version has been released.
http://nginx.org


Changes with nginx 1.9.0 28 Apr 2015

*) Change: obsolete aio and rtsig event methods have been removed.

*) Feature: the "zone" directive inside the "upstream" block.

*) Feature: the stream module.

*) Feature: byte ranges support in the ngx_http_memcached_module.
Thanks to Martin Mlynář.

*) Feature: shared memory can now be used on Windows versions with
address space layout randomization.
Thanks to Sergey Brester.

*) Feature: the "error_log" directive can now be used on mail and server
levels in mail proxy.

*) Bugfix: the "proxy_protocol" parameter of the "listen" directive did
not work if not specified in the first "listen" directive for a
listen socket.
I hope we will see Nginx-1.9.0 in CB 2.0 because 1.9 is going to bring us http/2 support :cool:
check out the roadmap.
 

Frej

Verified User
Joined
Jun 15, 2008
Messages
156
its still not available in custombuild 2 :/

any update?
 

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
Not sure if they going to bring it to CB 2 anytime soon because it's "mainline" and they always had the "stable" line in custombuild.
However it would be nice if we had an option to use it. :)
For now there is not so much difference with 1.8, once they have http/2 implemented that will change.
 

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
2015-09-22
nginx-1.9.5 mainline version has been released, featuring experimental HTTP/2 module. :D :cool:
http://nginx.org

Can we get this in Custombuild please? Maybe as an option (not default yet) ?
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
Upgraded to 1.9.11 // nginx_mainline is added into versions.txt by custombuild developers and it already exists on directadmin's files servers.


Run this code to get a script to install nginx_mainline:


Code:
touch /usr/local/directadmin/custombuild/build_nginx-custom
chmod 755 /usr/local/directadmin/custombuild/build_nginx-custom
vi /usr/local/directadmin/custombuild/build_nginx-custom

Press "Insert" and paste the following content:


Code:
#!/bin/bash
NGINX_VER=1.9.11
cd /usr/local/directadmin/custombuild
cat custom_versions.txt | grep -Ev "^nginx:|^$" > custom_versions.txt.new
mv -f custom_versions.txt.new custom_versions.txt
echo "nginx:${NGINX_VER}:" >> custom_versions.txt
wget http://nginx.org/download/nginx-${NGINX_VER}.tar.gz -O nginx-${NGINX_VER}.tar.gz
./build update
./build nginx

Press "Escape" then ":x" and "Enter" to save and exit.


To get nginx mainline installed


Code:
cd /usr/local/directadmin/custombuild
./build_nginx-custom
 
Last edited:

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
In the NGINX 1.9.x branch, they have completely removed the SPDY module from the codebase and replaced it with the HTTP/2 module. After moving to 1.9.5, you can no longer configure NGINX to use SPDY. If you would like to keep using SPDY, it will continue to be supported in the NGINX 1.8.x branch.

https://www.nginx.com/blog/nginx-1-9-5/
 

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
In the NGINX 1.9.x branch, they have completely removed the SPDY module from the codebase and replaced it with the HTTP/2 module. After moving to 1.9.5, you can no longer configure NGINX to use SPDY. If you would like to keep using SPDY, it will continue to be supported in the NGINX 1.8.x branch.

https://www.nginx.com/blog/nginx-1-9-5/
I was reading about that, I'm going to switch to http2 and drop spdy support.
It looks like you just have to change spdy to http2 and set the directives.
I think I know what I have to do but still unsure.
It might be tricky to upgrade.
I also have to check first if all modules that i'm using are supported. I will wait until they release php 7 anyway.
 

Frej

Verified User
Joined
Jun 15, 2008
Messages
156
smtalk ye but nginx got a different take on mainline version
this is taken from nginx announcement themself:


How Branch Renumbering Works
The branch renumbering is part of our annual checkpoint process where we fork off a “stable” (no new features) branch from the “mainline” (feature development) branch. NGINX 1.8 was forked as the new stable branch from the 1.7 mainline branch, and the 1.7 branch is renumbered to 1.9. We are no longer supporting 1.6 (the former stable branch) or doing development in 1.7.

In NGINX nomenclature, stable (now version 1.8) means that the feature set is fixed; only critical bug fixes are committed to that branch. Stable does not necessarily mean more reliable or more bug-free. In fact, the mainline branch (now 1.9) is generally regarded as more reliable because we commit a wider range of bug fixes to it, not just the critical fixes merged into the stable branch. On the other hand, any changes to the stable branch are very unlikely to affect the operation of third-party modules, whereas in the mainline branch the addition of new features might do so.
To get a full view of how we do our branch renumbering (complete with pictures), check out last year’s post.
 

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
435
Location
Arnhem, NL
@ zEitEr

Thanks for this method. I have copied the nginx configure.conf from CB to the Custom folder to add SPDY. Can i now just remove the nginx config from the Custom folder in Custombuild?
 

Frej

Verified User
Joined
Jun 15, 2008
Messages
156
have anyone tried rebuilding nginx with http 2 module? any particular instruction since it fails to recompile on my end
 

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
435
Location
Arnhem, NL
have anyone tried rebuilding nginx with http 2 module? any particular instruction since it fails to recompile on my end
Yes, i have been using it now with HTTP/2.0. You need to copy:

/usr/local/directadmin/custombuild/configure/nginx/configure.conf to /usr/local/directadmin/custombuild/custom/nginx/.

And then add the http v2 module like described here;

http://nginx.org/en/docs/http/ngx_http_v2_module.html

--with-http_v2_module
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
Since nginx_mainline is added into versions.txt by Custombuild developers and it already exists on directadmin's files servers:

Code:
[root@server custombuild]# grep mainline versions.txt
nginx_mainline:1.9.9:50fdfa08e93ead7a111cba5a5f5735af
there is no more need to download it manually. It will be download automatically with
Code:
./build nginx
from a selected mirror, e.g.:

http://files.directadmin.com/services/custombuild/nginx-1.9.9.tar.gz

Just to make sure you still have the desired version in custom_versions.txt:

Code:
[root@server custombuild]# cat custom_versions.txt
nginx:1.9.9:
 

shivampaw

New member
Joined
Aug 27, 2015
Messages
2
Upgraded to 1.9.11 // nginx_mainline is added into versions.txt by custombuild developers and it already exists on directadmin's files servers.


Run this code to get a script to install nginx_mainline:


Code:
touch /usr/local/directadmin/custombuild/build_nginx-custom
chmod 755 /usr/local/directadmin/custombuild/build_nginx-custom
vi /usr/local/directadmin/custombuild/build_nginx-custom

Press "Insert" and paste the following content:


Code:
#!/bin/bash
NGINX_VER=1.9.11
cd /usr/local/directadmin/custombuild
cat custom_versions.txt | grep -Ev "^nginx:|^$" > custom_versions.txt.new
mv -f custom_versions.txt.new custom_versions.txt
echo "nginx:${NGINX_VER}:" >> custom_versions.txt
wget http://nginx.org/download/nginx-${NGINX_VER}.tar.gz -O nginx-${NGINX_VER}.tar.gz
./build update
./build nginx

Press "Escape" then ":x" and "Enter" to save and exit.


To get nginx mainline installed


Code:
cd /usr/local/directadmin/custombuild
./build_nginx-custom


What needs to be done for Nginx as a reverse proxy with apache?

I want to upgrade from Nginx 1.8 to 1.9 and enable HTTP/2 with a fallback to SPDY with a fallback to HTTP/1.
 
Top