![]() Most of the time, you will be needing this only. Specially when you are seeing 404 or unexpected pages. You might end up fixing your problem using them alone.Īlright… looks like you need some serious debugging… Lets go ahead! Debug only rewrite rules Also, every time you upgrade Nginx, update your config files also to use latest Nginx offering.Īnd before we proceed, please read these official articles: common Nginx Pitfalls, if-is-evil, location-directive & Nginx’s request processing. I believe, we never break something that we never code! So before you copy-paste any Nginx config, make sure you remove unwanted codes. On Ubuntu, you can simply run nginx -t & service nginx reload command. Important: After any change to any Nginx configuration file, you must test and reload Nginx configuration for changes to take effect. We can control many aspects about error logging which will help us debug our Nginx configuration. ![]() By default, Nginx logs only standard errors to default Nginx error log file or a file specified by error_log directive in site-specific server configuration. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |