Wednesday, January 28, 2015

Nginx performance optimization


  1. Enable woff compression in Nginx
    1. Add Mime type - /etc/nginx/mime.types
      1. application/font-woff                   woff;
    2. Add gzip compression for fonts - /etc/nginx/nginx.conf
      1. gzip_types  application/font-woff
  2. Administration
    1. Reload - sudo service nginx reload
    2. Start - sudo nginx
    3. stop - sudo nginx -s stop

No comments:

LinkWithin

Related Posts with Thumbnails