- NGINX Cookbook
- Tim Butler
- 78字
- 2021-07-03 00:04:31
How it works...
Laravel stores the files accessible by PHP-FPM and NGINX in the public folder, not the root of the Laravel project. Make sure you point the root to the correct directory, otherwise you could expose your configuration files.
We set a location block (location ~ \.php$) so that only PHP files are compiled by our PHP-FPM configuration. This means that all other files (for example, CSS stylesheets) are served directly by NGINX for the greatest efficiency.
推薦閱讀
- Java面向對象思想與程序設計
- Silverlight魔幻銀燈
- Mastering Python High Performance
- 劍指MySQL:架構、調優與運維
- Python算法指南:程序員經典算法分析與實現
- MongoDB,Express,Angular,and Node.js Fundamentals
- Kivy Cookbook
- Django 3.0應用開發詳解
- 多媒體技術及應用
- Android移動應用項目化教程
- The Statistics and Calculus with Python Workshop
- SQL Server 2012 數據庫應用教程(第3版)
- 川哥教你Spring Boot 2實戰
- Mastering Unity 2017 Game Development with C#(Second Edition)
- Apple Watch極速開發