@JS's Notes

Site with notes from my work.

Nginx with fcgiwrap on Ubuntu 20.04

2020-06-14 System @JS

Requirements: user with root privileges or non-root user with sudo privileges.

Nginx installation
$ sudo apt update && sudo apt upgrade -y
$ sudo apt install nginx -y
$ sudo systemctl is-enabled nginx.service
$ sudo systemctl status nginx.service
## if nginx is not enabled, enable it and run ##
Continue reading

How to optimize your site using Gzip compression on the Nginx server

2019-10-05 System SEO @JS

My test platform: CentOS Linux release 7.6.1810 (Core)

Requirements: user with root privileges or non-root user with sudo privileges.

Edit the configuration file /etc/nginx/nginx.conf and add as shown below:

server {
    [...]
    gzip on;
    gzip_vary on;
    gzip_min_length 10240;
    gzip_proxied expired no-cache no-store private auth;
    gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
    gzip_disable "MSIE [1-6]\.";
    ...
}
Continue reading