在阿里云/騰訊云等平臺(tái)解析二級(jí)域名時(shí),需進(jìn)入域名管理控制臺(tái)添加CNAME或A記錄。例如為blog.example.com
配置解析時(shí),需設(shè)置記錄類(lèi)型為CNAME并指向目標(biāo)服務(wù)器IP或主域名。泛解析可通過(guò)添加通配符(*)記錄實(shí)現(xiàn)所有子域名自動(dòng)指向。
推薦使用以下支持二級(jí)域名的免費(fèi)方案:
server {
listen 80;
server_name blog.example.com;
root /var/www/blog;
}
解析生效延遲:建議TTL設(shè)置為300秒并刷新DNS緩存
HTTPS證書(shū):使用Let’s Encrypt免費(fèi)證書(shū)自動(dòng)部署
2025-03-11
廣州蘇營(yíng)貿(mào)易有限公司專(zhuān)注海外推廣十年,是谷歌推廣.Facebook廣告核心全球合作伙伴,我們精英化的技術(shù)團(tuán)隊(duì)為企業(yè)提供谷歌海外推廣+外貿(mào)網(wǎng)站建設(shè)+網(wǎng)站維護(hù)運(yùn)營(yíng)+Google SEO優(yōu)化+社交營(yíng)銷(xiāo)為您提供一站式海外營(yíng)銷(xiāo)服務(wù)。
We and selected third parties use cookies or similar technologies for technical purposes and, with your consent, for other purposes as specified in the cookie policy.
You can consent to the use of such technologies by closing this notice, by interacting with any link or button outside of this notice or by continuing to browse otherwise.