- NGINX Cookbook
- Tim Butler
- 69字
- 2021-07-03 00:04:23
Subdomains
If you've selected subdomains, your code to put in wp-config.php will look like this:
define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'wordpressdemo.nginxcookbook.com'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);
You'll also need to modify the NGINX config as well to add in the wildcard for the server name:
server_name *.wordpressdemo.nginxcookbook.com wordpressdemo.nginxcookbook.com;
You can now add in the additional sites, such as site1.wordpressdemo.nginxcookbook.com, and there won't be any changes required for NGINX.
推薦閱讀
- Visual Studio 2012 Cookbook
- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- Python從菜鳥到高手(第2版)
- JavaScript+jQuery開發實戰
- R語言游戲數據分析與挖掘
- Learning Linux Binary Analysis
- 深度學習:算法入門與Keras編程實踐
- Spring Boot+MVC實戰指南
- 案例式C語言程序設計實驗指導
- 機器學習微積分一本通(Python版)
- Magento 2 Beginners Guide
- Clojure Polymorphism
- 虛擬現實建模與編程(SketchUp+OSG開發技術)
- ASP.NET Core and Angular 2
- JavaWeb從入門到精通(視頻實戰版)