Welcome to Centmin Mod Community
Register Now

Nginx [nginx-announce] nginx-1.11.0

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, May 25, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    Changes with nginx 1.11.0 24 May 2016

    *) Feature: the "transparent" parameter of the "proxy_bind",
    "fastcgi_bind", "memcached_bind", "scgi_bind", and "uwsgi_bind"
    directives.

    *) Feature: the $request_id variable.

    *) Feature: the "map" directive supports combinations of multiple
    variables as resulting values.

    *) Feature: now nginx checks if EPOLLRDHUP events are supported by
    kernel, and optimizes connection handling accordingly if the "epoll"
    method is used.

    *) Feature: the "ssl_certificate" and "ssl_certificate_key" directives
    can be specified multiple times to load certificates of different
    types (for example, RSA and ECDSA).

    *) Feature: the "ssl_ecdh_curve" directive now allows specifying a list
    of curves when using OpenSSL 1.0.2 or newer; by default a list built
    into OpenSSL is used.

    *) Change: to use DHE ciphers it is now required to specify parameters
    using the "ssl_dhparam" directive.

    *) Feature: the $proxy_protocol_port variable.

    *) Feature: the $realip_remote_port variable in the
    ngx_http_realip_module.

    *) Feature: the ngx_http_realip_module is now able to set the client
    port in addition to the address.

    *) Change: the "421 Misdirected Request" response now used when
    rejecting requests to a virtual server different from one negotiated
    during an SSL handshake; this improves interoperability with some
    HTTP/2 clients when using client certificates.

    *) Change: HTTP/2 clients can now start sending request body
    immediately; the "http2_body_preread_size" directive controls size of
    the buffer used before nginx will start reading client request body.

    *) Bugfix: cached error responses were not updated when using the
    "proxy_cache_bypass" directive.


    --
    Maxim Dounin
    http://nginx.org/

    _______________________________________________
    nginx-announce mailing list
    nginx-announce@nginx.org
    http://mailman.nginx.org/mailman/listinfo/nginx-announce

    Continue reading...
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    updated via centmin.sh menu option 4 specify 1.11.0 version

    centos 7
    centos 6
     
    Last edited: May 25, 2016
    • Like Like x 1
  3. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    2:58 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    Updated

    Code:
    Total Nginx Upgrade Time: 533.570829176 seconds
     
    • Like Like x 1
  4. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    8:58 PM
    1.13.x
    MariaDB 10.1.x
    I just upgraded nginx to 1.11.0 and got this error.

    Code:
    Starting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
    [FAILED]
    
    Seems the pagespeedadmin.conf is causing the issue.

    Code:
    ● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
       Loaded: loaded (/etc/rc.d/init.d/nginx)
       Active: failed (Result: exit-code) since Tue 2016-05-24 19:00:29 UTC; 1min 45s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 14444 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
    Main PID: 2256 (code=exited, status=0/SUCCESS)
    
    May 24 19:00:29 localhost.localdomain systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    May 24 19:00:29 localhost.localdomain nginx[14444]: Starting nginx: nginx: [emerg] unknown directive "pagespeed" in /usr/local/nginx/conf/pagespeedadmin.conf:9
    May 24 19:00:29 localhost.localdomain nginx[14444]: [FAILED]
    May 24 19:00:29 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
    May 24 19:00:29 localhost.localdomain systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    May 24 19:00:29 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
    May 24 19:00:29 localhost.localdomain systemd[1]: nginx.service failed.
    
     
    • Informative Informative x 1
  5. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:58 AM
    1.11
    10.2
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    which version of centmin mod ? both 123.08stable and 123.09beta01 have ngx_pagespeed disabled by default and only 123.09beta01 supports re-enabling it now as 123.08stable doesn't have the improved ngx_pagespeed 1.10+ compatibility code. See news thread at Nginx 1.9.11 dynamic module compatibility

    123.08stable has disabled ngx_pagespeed and lua nginx modules due to incompatibility with nginx 1.9.11 dynamic modules. If you want ngx_pagespeed for now you need to update Centmin Mod to 123.09beta01 outlined here Beta Branch - Centmin Mod .09 beta branch Testing

    With 123.09beta01, set in /etc/centminmod/custom_config.inc persistent config file you create or already created and set:
    Code (Text):
    NGINX_PAGESPEED=y

    and then recompile Nginx via centmin.sh menu option 4
     
  7. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:58 AM
    1.11
    10.2
    Why is it you guys have "built by clang 3.4.2 (tags/RELEASE_34/dot2-final)" ?
    Where as mine has "built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) "?
     
  8. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:58 AM
    1.11
    10.2
    configure arguments is also different?
     
  9. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    8:58 PM
    1.13.x
    MariaDB 10.1.x
    I'm running 123.09beta01.
    I had it in my custom_config.inc to enable pagespeed when I compiled Nginx for 1.11.0.

    Code:
    NGINX_PAGESPEED=y
    NGXPGSPEED_VER='1.11.33.2-beta'
    nginx_pagespeedpsol_ver='1.11.33.2'
    I had to comment out the line below in the nginx.conf to get Nginx to restart.
    Code:
    # include /usr/local/nginx/conf/pagespeedadmin.conf;
     
    • Informative Informative x 1
  10. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    Wrong variable ;)
     
  11. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    8:58 PM
    1.13.x
    MariaDB 10.1.x
    • Informative Informative x 1
  12. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:58 AM
    1.11
    10.2
    I'm interested on this one:
     
    • Agree Agree x 1
  13. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    To troubleshoot, you need to check the the nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com
    yes dual ssl certificate support as per roadmap at Roadmap – nginx
     
  14. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:58 AM
    1.11
    10.2
    • Informative Informative x 1
  15. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    Nice example of working nginx upgrade and fast too :)
    Code (Text):
    Total Nginx Upgrade Time: 38.646193486 seconds
     
  16. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:58 AM
    1.11
    10.2
    But I'm curious why I'm using gcc not clang? :D
     
  17. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    8:58 PM
    1.13.x
    MariaDB 10.1.x
    It makes fine.

    Code:
    Tue May 24 19:47:31 UTC 2016
    Success: Nginx was installed properly
    
    The issue is in the the pagespeedadmin.conf I believe.

    Code:
    Starting nginx: nginx: [emerg] unknown directive "pagespeed" in /usr/local/nginx/conf/pagespeedadmin.conf:9
    
    If you want to see the logs, I can post those in a gist for you.
     
  18. eva2000

    eva2000 Administrator Staff Member

    30,166
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    10:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    Been mentioned on the forums prior, ngx_pagespeed 1.10 and higher branch require GCC versions 4.8+ or higher and centos 6 uses GCC 4.4.7 so requires devtoolset based GCC 4.9.1. Clang is no longer able to compile ngx_pagespeed 1.10+ branch only GCC compiler. Centos 7 uses GCC 4.8.5 by default. If you disable ngx_pagespeed then it reverts back to faster clang 3.4 based compiler instead of GCC.
    it didn't compile 100% fine as the error means ngx_pagespeed is not supported in your compiled nginx version hence all the ngx_pagespeed related variables and options in /usr/local/nginx/conf/pagespeedadmin.conf are not supported = unknown directive so yes gist nginx upgrade log should help
     
  19. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    8:58 PM
    1.13.x
    MariaDB 10.1.x
    Here it is: Upgrade Local · GitHub
     
    • Informative Informative x 1
  20. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:58 AM
    1.11
    10.2
    That explains it :).
    Sorry I was soo busy the month of March to May, so I haven't read up those topics :(.
    Disabling ngx_pagespeed now and let's see :).