- NGINX Cookbook
- Tim Butler
- 120字
- 2021-07-03 00:04:22
How to do it...
In this instance, we're simply using a standalone WordPress site, which would be deployed in many personal and business scenarios. This is the typical deployment for WordPress.
For ease of management, I've created a dedicated config file just for the WordPress site (/etc/nginx/conf.d/wordpress.conf):
server { listen 80; server_name wordpressdemo.nginxcookbook.com; access_log /var/log/nginx/access.log combined; location / { root /var/www/html; 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; } }
Reload NGINX to read the new configuration file and check your log files if there are any errors. If you're installing WordPress from scratch, you should see the following:

You can complete the WordPress installation if you haven't already.
推薦閱讀
- 移動UI設(shè)計(微課版)
- iOS 9 Game Development Essentials
- Mastering Selenium WebDriver
- R語言游戲數(shù)據(jù)分析與挖掘
- Learning Elixir
- 征服RIA
- 網(wǎng)店設(shè)計看這本就夠了
- 名師講壇:Spring實戰(zhàn)開發(fā)(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- 區(qū)塊鏈底層設(shè)計Java實戰(zhàn)
- 從零開始學(xué)C語言
- 基于ARM Cortex-M4F內(nèi)核的MSP432 MCU開發(fā)實踐
- Mastering C++ Multithreading
- Simulation for Data Science with R
- Python硬件編程實戰(zhàn)
- Android 游戲開發(fā)大全(第二版)