andypinet / blog

0 stars 0 forks source link

【原创】我的网站部署的手册 #4

Open andypinet opened 7 years ago

andypinet commented 7 years ago

防止网站被人恶意解析

apache

在vhost文件加入重定向

<VirtualHost *:80>
    <IfModule mod_rewrite.c>
        RewriteEngine On
        rewriterule ^/(.*) http://www.xx.com/$1 [L,R=301] # www.xx.com是你要跳转的域名网址
    </IfModule>
</VirtualHost

cdn

阿里云文档 https://help.aliyun.com/document_detail/27112.html?spm=5176.doc34992.2.1.y1ZeBU