Payments & Platform Access · Practical News

Configuring Mini Program Server Domains: Filing, HTTPS and the Two Domain Types

Source: Paddy Dance teamKeywords: mini program server domain configuration

Three prerequisites, all mandatory

The domain must be filed in mainland China, which the platform checks automatically. It must support HTTPS with a complete certificate chain — self-signed certificates will not work. The certificate must be valid; on the expiry day every request fails.

A common mistake is entering an IP or a host with a port. Legal domains take the domain only, without scheme, port or path.

The two domain types

Server domains cover API requests and file transfer; business domains cover pages loaded in webview and require a verification file on the target site. Putting a web page address under server domains simply will not work.

There is a cap on how many domains you can configure, so consolidate APIs or add a gateway layer. Plan for this at design time rather than at launch.

Why changes do not take effect

The developer tool caches configuration, so recompile and clear cache. Or the change was made to the trial build while the release build still has the old settings. Or the device is on a corporate network that cannot reach the public domain.

We help with configuration and certificate chains, including filing status checks, certificate deployment and gateway routing. The filing itself is reviewed by the authorities.

FAQ

Must the domain be filed before configuration?

For mainland entities on mainland servers, configured domains generally need filing. Unfiled domains may fail in the production environment even if configuration succeeds.

Can an IP address be used for APIs?

No. Legal domains must be domain names. You can point a domain at that IP, but the HTTPS certificate must match the domain.

Can one domain serve several mini programs?

Yes, domains are not exclusive. Ensure proper authorisation and isolation between programs, and never share the same secret across them.

Related questions

Request legal domain in mini programsDoes the domain need ICP filingDomain configuration not taking effectBusiness domain vs server domain

Further reading

Sources & References

The following are public sources. Always check the latest requirements on the official authority or platform page.

Explain your case first, then confirm the scope

Tell us your entity, business model and current progress. We will confirm what we can assist with and what you need to do before discussing fees.