The following settings are set under the Nginx server.
Deploy SSL Certificate
Use the TrustAsia certificate, enable SSL, and follow the explain Modify. conf and restart Nginx to report an error. The error is as follows:
Stoping nginx... nginx: [emerg] invalid number of arguments in "ssl_certificate" directive in /usr/local/nginx/conf/vhost/www.yourdomain.com.conf:10 failed. Use force-quit Starting nginx... nginx (pid ***** *****) already running.
Finally, after a careful look at the configuration, we found that ";" was not added at the end of the lines ssl_certificate server.pem and ssl_certificate_key server.key.
[hr]
Gmail SMTP plug-in
The purpose of using Gmail SMTP plug-in is to send e-mail through gmail, so as to avoid the risk of disclosing the server IP address and e-mail being easily mistaken for spam.
Fill in the client ID, client key and other information, and click Grant Permission to report an error. The error is as follows:
Error: redirect_uri_mismatch The redirect URI in the request, https://www.yourdomain.com/wp-admin/options-general.php?page=gmail -smtp-settings&action=oauth_grant, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/ *****************
Attempts are invalid.
Later, directly in https://console.developers.google.com Enter in the "Authorized Redirect URI" text box of "Web App Client ID" https://www.yourdomain.com/wp-admin/options-general.php?page=gmail -Smtp settings&action=oauth_grant, save. Click Authorize in the WordPress background and you will succeed.