Archives: nginx

Creating NGINX Rewrite Rules

12/04/2019 | By Dev | No Comments | Filed in: nginx.

Comparing the return, rewrite, and try_filesDirectives The two directives for general‑purpose NGINX rewrite are return and rewrite, and the try_files directive is a handy way to direct requests to application servers. Let’s review what the directives do and how they differ. The return Directive The return directive is the simpler of the two general‑purpose directives and for that reason we recommend using it instead of rewrite when possible (more • Read More »