Linux路径
/home/work/web/ioslink/doctor/apple-app-site-association
Nginx配置:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name help.xx.cn;
root /home/work/web/ioslink;
# SSL
ssl_certificate /etc/nginx/cert/xx.cn.pem;
ssl_certificate_key /etc/nginx/cert/xx.cn.key;
# security
include /etc/nginx/nginxconfig.io/security.conf;
# restrict methods
if ($request_method !~ ^(GET|POST|PUT|DELETE|OPTIONS)$) {
return '405';
}
# logging
access_log /home/work/logs/nginxLog/help.xx.cn.access.log cloudflare;
error_log /home/work/logs/nginxLog/help.xx.cn.error.log warn;
# additional config
include /etc/nginx/nginxconfig.io/general.conf;
}
请求:
https://help.xxx.cn/doctor/apple-app-site-association