worker_processes and worker_connections Nginx Event Model On Linux, Nginx uses the efficient epoll event model. This involves a child worker process with a single thread responding to I/O events (network, [ … ]
Category: Real Time Concepts
Nginx map Directive
What is it? The nginx map module allows you to map a set of values into a different set of values, storing the result in a variable. The nginx map [ … ]
NginX installation and support
Installation yum install epel-release yum install nginx chkconfig nginx on service nginx start Edit /etc/nginx/nginx.conf and change this to the number of physical CPU cores: worker_processes 1; Configuration Apache vs [ … ]
Nginx and lsyncd proxy_pass
We create three `server` blocks: One to redirect http to https One to decide if requests should go to web1 or be served locally One to serve local wordpress nginx [ … ]
FastCGI (non-PHP) on nginx
Overview Most users of nginx are going to configure it to run PHP scripts via . However there are some PHP-FPM who wish to run Perl (or another language) through [ … ]
Example Nginx Configurations
WordPress WordPress is incredibly simple and you need to modify very little. These configurations assume you are behind some kind of load balancer and will set the IP properly. nginx.conf: [ … ]
Caching dynamic content with Nginx
Technical Details The first thing we need to do, is configure Nginx to determine what needs to differentiate our cached pages. In our example, we’re using device type since this [ … ]
Block IP with Nginx behind CLB
If a customer is using a Cloud Load Balancer, they are restricted to only allowing/denying 100 IPs. However, they may want to block specific IPs still. Ideally, we would block [ … ]
X-Served-By Header for Identifying Web Nodes
Summary Apache has the ability to return its Hostname via the X-Served-By header. When troubleshooting nodes behind a Load Balancer, this can help localize a problematic node. This guide will [ … ]
Troubleshooting Alternative php Cache ( APC )
Overview APC (alternative php cache) is a module that provides opcode caching for PHP pages. It comes installed by default on our LAMP kicks and can be a major performance [ … ]
