Skip to Content
Mastering NGINX - Second Edition
book

Mastering NGINX - Second Edition

by Dimitri Aivaliotis
July 2016
Beginner
320 pages
6h 32m
English
Packt Publishing
Content preview from Mastering NGINX - Second Edition

Decision-making in NGINX

You may find yourself trying to bend NGINX's configuration directives in ways that they were not meant to be used. This is frequently seen in configurations where there are a lot of if checks to try to emulate some sort of logic chain. A better option would be to use NGINX's embedded perl module. With this module, you will be able to use the flexibility of Perl to achieve your configuration goals.

The perl module is not built by default, so it needs to be enabled with the --with-http_perl_module configure switch. A minimum of Perl 5.6.1 is required. Ensure as well that your Perl was built with -Dusemultiplicity=yes (or -Dusethreads=yes) and -Dusemymalloc=no. NGINX configuration reloads will cause the perl module to leak ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Nginx Essentials

Nginx Essentials

Valery Kholodkov, Valery I Kholodkov
NGINX Cookbook

NGINX Cookbook

Tim Butler
NGINX Cookbook

NGINX Cookbook

Derek DeJonghe
NGINX Cookbook

NGINX Cookbook

Derek DeJonghe

Publisher Resources

ISBN: 9781782173311