- 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.
推薦閱讀
- Python編程自學(xué)手冊(cè)
- 摩登創(chuàng)客:與智能手機(jī)和平板電腦共舞
- 我的第一本算法書
- 名師講壇:Java微服務(wù)架構(gòu)實(shí)戰(zhàn)(SpringBoot+SpringCloud+Docker+RabbitMQ)
- C語(yǔ)言實(shí)驗(yàn)指導(dǎo)及習(xí)題解析
- Serverless架構(gòu)
- Flowable流程引擎實(shí)戰(zhàn)
- Kubernetes源碼剖析
- Android傳感器開發(fā)與智能設(shè)備案例實(shí)戰(zhàn)
- 深入大型數(shù)據(jù)集:并行與分布化Python代碼
- Java EE框架開發(fā)技術(shù)與案例教程
- 新手學(xué)ASP動(dòng)態(tài)網(wǎng)頁(yè)開發(fā)
- VB語(yǔ)言程序設(shè)計(jì)實(shí)驗(yàn)教程
- 新編C語(yǔ)言程序設(shè)計(jì)教程(第2版)
- Java數(shù)據(jù)科學(xué)指南