ScaleScaleScaleScale

Tips / Nginx

Archive for September, 2015

How to run CGI scripts using Thttpd + Nginx

Days ago we wrote a guide about How to serve CGI scripts using Nginx, in that tutorial we explored how Nginx doesn’t fully support CGI parsing natively, however installing a FastCGI wrapper can make Nginx able to parse CGI scripts. Today we will learn an alternative method to Run CGI scripts with thttpd + Nginx. […] Read more

How to fix open() “/var/cache/nginx/” failed (13: Permission denied) while reading upstream error

While developing apps running on Nginx, sometimes you may face this kind of error: open() “/var/cache/nginx/” failed (13: Permission denied) while reading upstream error. Investigating Nginx logs will show you something like this: 2015/07/25 11:37:44 [crit] 27955#0: *5607 open() "/var/cache/nginx/fastcgi_temp/7/01/0000000017" failed (13: Permission denied) while reading upstream, client: 167.108.150.239, server: yoursite.com, request: "GET /wp-admin/admin.php?page=theme_options HTTP/1.1", […] Read more

How to Configure Nginx + CDN to Serve Cross Domain Web Fonts

Since the introduction of the internet and the beginning of web design, developers and designers were always forced to use the standard fonts located on their computers. However, in recent years web fonts became a new standard in web development. Web fonts help devs and designers to offer great quality and variety in their web apps. One of […] Read more

Nginx Error_log Configuration

Nginx serves millions of applications on a daily basis, and those millions of apps generate errors. Guess what? So do yours. Some of them are critical, while others are just notices. The important thing here is to get access to those errors to debug and have a clear view of what’s happening with your web applications. […] Read more