Category: Nginx 1.10
-
Post Views: 52 1. In Windows Powershll, enter the wwwroot directory, as shown in Figure 1 2. Through the Composer installation, run the following commands and install it in the kaiqiu_shujujixi_api directory, as shown in Figure 2 and 3 composer create-project yiisoft/yii2-app-advanced kaiqiu_shujujixi_api 2.0.10 3. Enter kaiqiu_shujujixi_api directory, right-click, select git bash here, as shown in Figure 4 4. Execute…
-
Post Views: 14 1. Install yii2-starter-kit under Windows 10 and Nginx 1.10, and run on the command line: php console/yii app/setup, as shown in Figure 1 2. Error: create unique index IDx_article_slug on {{%article}} (slug) …exception: sqlstate[42000]: Syntax error or access Violation: 1071 specific key was too long; max key length is 767 bytes, as shown in Figure 2 Translation:…
-
Post Views: 11 1. Edit the nginx.conf file and add a total of 5 virtual hosts, as shown in Figure 1: 2. Execute the command: nginx -s reload, reload, report an error, as shown in Figure 2: Tips: nginx:[emerg]Could not build server_names_hash, you should increase server_names_hash_bucket_size: 32 Translation: nginx:[emerg]Unable to build server_names_hash, should add server_names_hash_bucket_size: 32 3. Open the URL:http://nginx.org/en/docs/http/server_names.html,…