Wednesday, December 20, 2017

Understanding nginx location blocks and rewrite rules



I recently moved a cakePHP website from an Apache server to an Nginx one. I had to translate url rewriting rules from one syntax to the other, and here is what I learned. First of all, Nginx internal logic for processing rewrite rules is not as straightforward as Apache.

No comments:

JavaScript Event Loop Explained

Now for the long answer, let me try through 2 sample code snippets. Here we have the main function which has 2 console.log commands loggin...