[TOC]
## **服务器配置**
1、修改web服务器配置,以nginx为例。增加如下配置:
```
location /h5 {
try_files $uri $uri/ @router;
}
location @router {
rewrite ^.*$ /h5/index.html last;
}
```

2、访问http://你的域名/h5,公众号地址链接到这个地址就行。
3、公众号配置:
域名配置:进入公众号后台->设置->公众号设置->功能设置,把域名添加 进来。如下图:

4、支付设置:进入微信商户后台->产品中心->JSAPI支付->产品设置,如下图:添加支付授权目录https://www.xxx.com/h5/pages/order

