主域名aaan.cn
點(diǎn)擊添加記錄,在主機(jī)記錄自定義二級(jí)域名:daozha,記錄類型默認(rèn)A,解析請(qǐng)求來源默認(rèn),記錄值一般是主機(jī)的外網(wǎng)IP,TTL默認(rèn)10分鐘
狀態(tài)正常后,可以選擇ping以下完整域名看看是否正常,ping daozha.aaan.cn
找到SSL證書(應(yīng)用安全)功能
創(chuàng)建證書,填寫證書申請(qǐng),證書綁定域名:daozha.aaan.cn ,CSR生成方式系統(tǒng)生成
完成后右下角會(huì)接到提示證書已簽發(fā)
這一步可以驗(yàn)證下,點(diǎn)擊提交審核
狀態(tài)已簽發(fā)
我用的nginx,所以下載nginx版本的證書
文章來源:http://www.zghlxwxcb.cn/news/detail-531080.html
nginx配置中引入證書文章來源地址http://www.zghlxwxcb.cn/news/detail-531080.html
server {
listen 443 ssl;
server_name daozha.aaan.cn;
#cert證書放置目錄
ssl_certificate cert/4324242_daozha.aaan.cn.pem;
ssl_certificate_key cert/4324242_daozha.aaan.cn.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location /screen/public/{
proxy_pass http://127.0.0.1:8066;
proxy_send_timeout 1800;
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
client_max_body_size 2048m;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host; # required for docker client's sake
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
error_page 404 = /404.html;
# # 承接上面的location
location /404.html {
# 放錯(cuò)誤頁面的目錄路徑。
root youanju/qrcode;
}
location /screen/public/ {
root yjj;
index index.html index.htm;
}
}
到了這里,關(guān)于【阿里云】二級(jí)域名創(chuàng)建的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!