1 接口域名解析在小程序开发过程中需要将接口域名解析到服务器IP地址。具体做法如下:1在域名管理平台中添加一条A记录将接口域名解析到服务器IP地址。2在服务器上配置Nginx或Apache等Web服务器将接口域名绑定到网站根目录。3在小程序中使用接口时将接口域名作为请求地址。以上内容翻译成英文
- Interface Domain Name Resolution
In the process of developing a mini program, it is necessary to resolve the interface domain name to the server IP address. The specific steps are as follows:
(1) Add an A record in the domain management platform to resolve the interface domain name to the server IP address.
(2) Configure Nginx or Apache web server on the server, and bind the interface domain name to the root directory of the website.
(3) When using the interface in the mini program, use the interface domain name as the request address.
原文地址: https://www.cveoy.top/t/topic/b2x6 著作权归作者所有。请勿转载和采集!