Join the community today
Become a Member

Nginx [nginx-announce] nginx-1.13.4

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Aug 9, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:54 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Changes with nginx 1.13.4 08 Aug 2017

    *) Feature: the ngx_http_mirror_module.

    *) Bugfix: client connections might be dropped during configuration
    testing when using the "reuseport" parameter of the "listen"
    directive on Linux.


    *) Bugfix: request body might not be available in subrequests if it was
    saved to a file and proxying was used.

    *) Bugfix: cleaning cache based on the "max_size" parameter did not work
    on Windows.

    *) Bugfix: any shared memory allocation required 4096 bytes on Windows.

    *) Bugfix: nginx worker might be terminated abnormally when using the
    "zone" directive inside the "upstream" block on Windows.


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

    Continue reading...
     
  2. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:54 AM
    Does not like:

    NGINX_PAGESPEED='y'
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:54 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    hmm confirmed nginx 1.13.4 broke ngx_pagespeed compatibility - for now stay on 1.13.3 until i investigate :)

    in 123.09beta01, when enabling ngx_pagespeed (disabled by default) via
    Code (Text):
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_PAGESPEED='y'
    

    results in
    Code (Text):
    objs/ngx_stream_module_modules.o \
    -lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib \
    -shared
    ../ngx_pagespeed-1.12.34.2-beta/src/ngx_pagespeed.cc: In function ‘ngx_int_t net_instaweb::{anonymous}::ps_preaccess_handler(ngx_http_request_t*)’:
    ../ngx_pagespeed-1.12.34.2-beta/src/ngx_pagespeed.cc:3011:31: error: ‘ngx_http_core_try_files_phase’ was not declared in this scope
       while (ph[i + 1].checker != ngx_http_core_try_files_phase &&
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    make[1]: *** [objs/addon/src/ngx_pagespeed.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory `/svr-setup/nginx-1.13.4'
    make: *** [build] Error 2
    


    submitted bug report at nginx 1.13.4 ‘ngx_http_core_try_files_phase’ was not declared in this scope · Issue #1451 · pagespeed/ngx_pagespeed · GitHub

    update: fixed Nginx - [nginx-announce] nginx-1.13.4
     
    Last edited: Aug 12, 2017
  4. buik

    buik “The best traveler is one without a camera.”

    2,044
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,691
    Local Time:
    7:54 AM
    Pagespeed could be game over.
    No release after +-8 months (latest stable is the same beta as of December 2 2016).

    Plus the most important thing. There is absolutely no reason to use pagespeed as there are better options to pre- optimize your content.
    For example:

    Kraken Image Optimizer
    MinifyResources
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:54 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    well i hope not - fingers crossed

    on the fly image optimisation and tailored to device mobile vs non-mobile is one of my fav features :)

    last commit was June 28 so not far off Commits · pagespeed/ngx_pagespeed · GitHub
     
  6. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:54 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    already got reply from ngx_pagespeed folks in bug report
     
  7. buik

    buik “The best traveler is one without a camera.”

    2,044
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,691
    Local Time:
    7:54 AM
  8. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:54 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yup awesome guy :)

    new nginx module added in 1.13.4 is interesting Module ngx_http_mirror_module

    could get very creative with this feature :D
     
  9. buik

    buik “The best traveler is one without a camera.”

    2,044
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,691
    Local Time:
    7:54 AM
    device mobile vs non-mobile? You are using Pagespeed to determine if the visitor is on mobile or non mobile (desktop) so pagespeed can optimize pictures etc for mobile of desktop?
     
  10. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:54 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yup i have separate optimised image settings one for desktop and one for mobile so that mobile users get faster loading pages - been doing this for years now with ngx_pagespeed :)
     
  11. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:54 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    for folks not using ngx_pagespeed (which is default disabled in centmin mod), 1.13.4 updates fine via centmin.sh menu option 4
     
  12. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    7:54 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    yep

     
  13. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:54 AM
    FYI once you update to 1.13.4 w/ pagespeed and it fails, you can't go back to 1.13.3 and use pagespeed. I tried and got an error with 1.13.3 when I tried to downgrade w/ pagespeed.
     
  14. rdan

    rdan Well-Known Member

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    1:54 PM
    Mainline
    10.2
    Even if you delete all the contents on /svr_setup/* ?
     
  15. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:54 AM
    Maybe, I didn't try that. I ended up just commenting out the pagespeed line in the nginx.conf
     
  16. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:54 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    strange worked fine here.

     
  17. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:54 AM
    Oh, you know, now that I think about it, I removed it from the custom_config. That was the issue. So when I downgraded and didn't compile with pagespeed, it gave me an error using 1.13.3 because of the line in the nginx.conf. :wacky:
     
    Last edited: Aug 9, 2017
  18. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    3:54 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    centmin actual auto detects and disables/enables nginx.conf related pagespeed when you don't set the variables so that shouldn't have happened either

    unless you mean you removed nginx.conf related pagespeed options manually?
     
  19. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    1:54 AM
    I commented out the pagespeed line in the nginx.conf.

    I'm off to bed, I'll test it tomorrow and see if what you said it should do happens.
     
  20. buik

    buik “The best traveler is one without a camera.”

    2,044
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,691
    Local Time:
    7:54 AM