- NGINX Cookbook
- Tim Butler
- 84字
- 2021-07-03 00:04:27
How to do it...
To use Joomla with NGINX, we need a simple NGINX configuration file. This is a very basic PHP-FPM configuration with no changes required:
server { listen 80; server_name joomla.nginxcookbook.com; access_log /var/log/nginx/joomla.access.log combined; index index.php; root /var/www/html/; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { fastcgi_pass unix:/var/run/php7.0-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name; include fastcgi_params; } location ^~ /cache/ { deny all; } }
To enable clean URLs, you also need to ensure that URL rewriting is enabled:

推薦閱讀
- CMDB分步構建指南
- Arduino開發實戰指南:LabVIEW卷
- FPGA Verilog開發實戰指南:基于Intel Cyclone IV(進階篇)
- 軟件供應鏈安全:源代碼缺陷實例剖析
- RocketMQ實戰與原理解析
- 零基礎看圖學ScratchJr:少兒趣味編程(全彩大字版)
- AI自動化測試:技術原理、平臺搭建與工程實踐
- 金融商業數據分析:基于Python和SAS
- Elasticsearch實戰(第2版)
- 數據科學之編程技術:使用R進行數據清理、分析與可視化
- Hands-On Full Stack Development with Angular 5 and Firebase
- Learning Java by Building Android Games
- 架構寶典
- MATLAB信號處理與應用
- 軟件方法(上):業務建模和需求(第2版)