HTTP1.1 vs HTTP/2 Limitations of HTTP/1.1 The HTTP/1.1 protocol is fraught with the following shortcomings that make it less ideal especially when running high-traffic web servers: 1.Delays in loading web [ … ]
Goaccess
Introduction GoAccess was designed to be a fast, terminal-based log analyzer. Its core idea is to quickly analyze and view web server statistics in real time without needing to use [ … ]
CMS Master Slave Rules
Configuration Below are a set of Apache rules for ensuring that files uploaded to a load balanced CMS are always put on to the master server, and then correctly displayed [ … ]
Apache 2.4 with PHP-FPM
Introduction Advantages of PHP-FPM Memory-efficiency. With mod_php, the full PHP interpreter lives within each Apache child process. Even if an Apache child process only handles requests for static resources (such [ … ]
Apache 2.2 + PHP-FPM
Installing the FPM You’ll need to be running PHP 5.3 or above. The IUS repository offers these packages for RHEL and CentOS. PHP 5.3 and 5.4 have reached end of [ … ]
PHP-FPM Troubleshooting
PHP-FPM Process Managers Introduction When looking into issues or configuration of php-fpm, its best to first understand the 3 process managers the php-fpm can use. A lot of the time [ … ]
Using Nginx as an SSL-terminated load balancer
Caveats: Bandwidth for all the backends is limited by the bandwidth of the reverse proxies. A single instance big enough to handle the traffic of all thebweb nodes might be [ … ]
SSL template for Nginx
Basic Virtual Host Configuration server { listen 80; server_name example.com www.example.com; root /var/www/vhosts/example.com; access_log /var/log/nginx/example.com-access.log main; error_log /var/log/nginx/example.com-error.log warn; index index.php index.html index.htm; } Notes To make a VirtualHost the [ … ]
Selective PHP-FPM Pools with Nginx
Selective PHP-FPM Pools An advanced php-fpm use case is multiple pools for a single domain. One scenario where this could be useful is load balanced servers with lsyncd. Since file [ … ]
phpMyAdmin on Nginx
When creating a new server for a client that wants to run Nginx, you’ll need to adapt the virtual host configuration to properly serve requests. After modification the server block [ … ]
