I discovered the X-Frame-Options response header this morning; it can be used to prevent your website being rendered within a <frame>, <iframe> or <object>. There are different … [Read more...] about Browser responses to the X-Frame-Options response header
Nginx Web Server
Tips, tricks, tutorials and troubleshooting articles for the Nginx web server
Nginx (pronounced "Engine-X") is an open source Web server and a reverse proxy server with a strong focus on high concurrency, performance and low memory usage. It can deploy dynamic HTTP content on a network using FastCGI, SCGI handlers for scripts, uWSGI application servers or Phusion Passenger module, and can serve as a software load balancer.
I don't use Nginx currently on any of my own web servers, but I do manage a customers images server which uses Nginx.
There may be times you need to redirect all requests away from a domain except for a single URL, for example when redirecting all requests from http to https but leaving one file accessible under http … [Read more...] about 301 all URLs but one with Nginx
If you are attempting to get files with a .html extension parsed as PHP with Nginx + php-fpm, you might get an "access denied" error in your browser, and the error message "Access to the script '...' … [Read more...] about Fix “access denied” error when parsing HTML as PHP with Nginx
After doing an upgrade on my Debian virtual server, which upgraded PHP and Nginx, I got a "502 Bad Gateway" error when browsing websites on that server. This post shows how to fix this problem, and … [Read more...] about 502 Bad Gateway error after upgrading Nginx and/or PHP
I've recently set up a new server with PHP & Nginx using packages from dotdeb. The default upload_max_filesize and post_max_size for this setup with php-fpm is 2M. To adjust it, the Nginx … [Read more...] about PHP upload_max_filesize and nginx
When migrating a mono application / web service running on one server to a new server I got an error telling me that the "Argument cannot be null" and "Parameter name: path". This post shows the full … [Read more...] about Fix Argument cannot be null, Parameter name: path on Nginx/Mono