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

推薦閱讀
- 黑客攻防從入門到精通(實戰秘笈版)
- JavaScript前端開發模塊化教程
- 零基礎搭建量化投資系統:以Python為工具
- ASP.NET MVC4框架揭秘
- C# 2012程序設計實踐教程 (清華電腦學堂)
- 動手玩轉Scratch3.0編程:人工智能科創教育指南
- Java從入門到精通(第5版)
- Implementing Cisco Networking Solutions
- 編寫高質量代碼:改善C程序代碼的125個建議
- Webpack實戰:入門、進階與調優
- 區塊鏈技術進階與實戰(第2版)
- Creating Data Stories with Tableau Public
- HTML5開發精要與實例詳解
- 平面設計經典案例教程:CorelDRAW X6
- Solutions Architect's Handbook