SwnoRabbit全家桶

SnowRabbit發表於2020-09-02

網站開始建立

安裝 laravel

# 安裝
composer global require laravel/installer
# 建立專案
composer create-project --prefer-dist laravel/laravel blog

建立 GitHub 賬號

snowrabbit-top

建立程式碼庫

ssh :  git@github.com:snowrabbit-top/snowrabbit.git
https :  https://github.com/snowrabbit-top/snowrabbit.git

上傳程式碼

git init
git add .
git commit -m '專案建立'
git branch -M master
git remote add origin https://github.com/snowrabbit-top/snowrabbit.git
git push -u origin master

解析網站域名

# 主站
www.snowrabbit.top
# 後臺
admin.snowrabbit.top
# 新聞
news.snowrabbit.top
# 視訊
video.snowrabbit.top
# 小說
novel.snowrabbit.top
# 音樂
music.snowrabbit.top
# 漫畫
cartoon.snowrabbit.top
# 遊戲
game.snowrabbit.top
# 論壇
forum.snowrabbit.top

購買域名證照

# 阿里雲免費 SSL 證照購買
https://common-buy.aliyun.com/?spm=5176.2020520163.0.0.512556a7i9MAm0&commodityCode=cas
# 證照下載
https://yundun.console.aliyun.com/?spm=5176.6660585.774526198.1.40cf6bf8c2gTBi&p=cas#/overview/cn-hangzhou

配置域名證照

<VirtualHost *:443>     
    ServerName   www.snowrabbit.top
    DocumentRoot  /snowrabbit/public/ # 這個目錄一定得是專案訪問目錄
    SSLEngine on   
    SSLProtocol all -SSLv2 -SSLv3
    SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM
    SSLHonorCipherOrder on
    SSLCertificateFile www.snowrabbit.top_public.crt # 絕對路徑
    SSLCertificateKeyFile www.snowrabbit.top.key # 絕對路徑
    SSLCertificateChainFile www.snowrabbit.top_chain.crt #絕對路徑
</VirtualHost>

訪問成功

訪問成功

本作品採用《CC 協議》,轉載必須註明作者和本文連結
月冰華

相關文章