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

推薦閱讀
- 解構(gòu)產(chǎn)品經(jīng)理:互聯(lián)網(wǎng)產(chǎn)品策劃入門寶典
- WebAssembly實(shí)戰(zhàn)
- 編程卓越之道(卷3):軟件工程化
- Mastering Natural Language Processing with Python
- Django開發(fā)從入門到實(shí)踐
- Java編程指南:基礎(chǔ)知識(shí)、類庫應(yīng)用及案例設(shè)計(jì)
- Access 2016數(shù)據(jù)庫管
- 量化金融R語言高級(jí)教程
- RSpec Essentials
- Android玩家必備
- CodeIgniter Web Application Blueprints
- Scala Functional Programming Patterns
- 現(xiàn)代C:概念剖析和編程實(shí)踐
- Machine Learning for OpenCV
- 官方 Scratch 3.0 編程趣味卡:讓孩子們愛上編程(全彩)