- 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:

推薦閱讀
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- Python編程自學手冊
- Mastering Zabbix(Second Edition)
- 信息可視化的藝術:信息可視化在英國
- R語言數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南
- Network Automation Cookbook
- 程序員修煉之道:通向務實的最高境界(第2版)
- 學習正則表達式
- Active Directory with PowerShell
- 零基礎學C語言(升級版)
- C語言程序設計
- Mastering Apache Camel
- 微信公眾平臺服務號開發(fā):揭秘九大高級接口
- The C++ Workshop
- Microsoft Hyper-V PowerShell Automation