跳转到帖子

11.新增論壇域名、 SSL憑證、偽靜態


Jack

推荐的帖子

--------------------------------------------
新增論壇域名、 SSL憑證、偽靜態
--------------------------------------------

準備好要加入你的論壇域名,如果你的主機硬體配置很高,當然可以增加好幾個域名,在此主機上跑很多網站
lnmp vhost add

 

Please enter domain(example: www.lnmp.org): 
輸入你的論壇域名

論壇.com

 

 

Enter more domain name(example: lnmp.org *.lnmp.org):
輸入更多域名

如果你以 論壇.com 為主(就是不加www),而輸入 www.論壇.com 自動轉到 論壇.com

那麼在這裡輸入

www.論壇.com

注意: 你的DNS也要設置有www、無www的DNS設置

 


Default directory: /home/wwwroot/論壇.com:
論壇的預設目錄
按Enter鍵

 

 


Allow Rewrite rule? (y/n) 
允許偽靜態
按 y

 

 

Please enter the rewrite of programme,
wordpress,discuzx,typecho,thinkphp,laravel,codeigniter,yii2 rewrite was exist.
(Default rewrite: other): 
自定義論壇的偽靜態,如何加入偽靜態內容,寫在後面的教學
先輸入 ips  或 xf  或 vbb

 

 

Enable PHP Pathinfo? (y/n) 
按 n

 


Allow access log? (y/n) 
啟用日誌
按 y

 


Enter access log filename(Default:論壇.com.log):
預設日誌的檔案名

按Enter鍵

就會看到  You access log filename: 論壇.com.log

 

 


Enable IPv6?
按 y

 


Create database and MySQL user with same name (y/n) 
建立相同名稱的資料庫名稱、資料庫用戶名
按 y

 

 

Enter current root password of Database (Password will not shown): 
輸入你資料庫的root密碼
就是lnmp.org#隨機數字

 

 

Enter database name: 
輸入你要建立的資料庫名
自定義

 

 

Please enter password for mysql user *****:
輸入資料庫用戶的密碼
自定義密碼

 

 

Add SSL Certificate (y/n) 
新增SSL憑證
按 y

 


1: Use your own SSL Certificate and Key
2: Use Let's Encrypt to create SSL Certificate and Key
3: Use BuyPass to create SSL Certificate and Key
4: Use ZeroSSL to create SSL Certificate and Key
Enter 1, 2, 3 or 4: 

想要用免費的
按 2 或 3 或 4

 

 

Please enter your email address: 
你的電子郵件

 

 

Using 301 to Redirect HTTP to HTTPS? (y/n)
按 y

 

 

Press any key to start create virtul host...
按任意鍵,開始建立主機

 

等待很短時間,將自動申請免費的SSL憑證,將自動建立主機

 


Test Nginx configure file......
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx......
Generate SSL Certificate successfully.

 

本帖最后于,由Jack编辑
意见的链接
分享到其他网站

创建帐户或登录后发表意见

你需要成为会员才能发表意见

创建帐户

在我们的论坛注册新帐户,只需要几个简单步骤!

注册帐户

登录

已有帐户?请登录。

立刻登录
×
×
  • 创建新的...