跳轉到內容
PHP論壇人

11.添加论坛域名、 SSL证书、IPS论坛伪静态


推薦的文章

--------------------------------------------
添加论坛域名、 SSL证书、IPS论坛伪静态
--------------------------------------------

准备添加你的论坛域名,如果你的主机硬件配置很高,当然可以添加好几个论坛域名,在此主机运行很多个站
lnmp vhost add


输入你的论坛域名
Please enter domain(example: www.lnmp.org): 
论坛.com

 

 

输入更多域名

如果你以 论坛.com 为主(就是不加www),而输入 www.论坛.com 自动转到 论坛.com

那么这里输入

www.论坛.com

注意: 你的DNS要设置 有www、无www 的DNS设置

Enter more domain name(example: lnmp.org *.lnmp.org):

 

 

论坛的默认目录
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论坛的伪静态,如何添加伪静态内容,写在之后的教程
先输入 ips

 


Enable PHP Pathinfo? (y/n) 
按 y

 


启用日志
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

 

输入你数据库的root密码
Enter current root password of Database (Password will not shown): 
之前自动创建的lnmp.org#随机数字

 

你要创建的数据库名
Enter database name: 
自定义


输入数据库用户的密码
Please enter password for mysql user *****: 
自定义密码

 

添加SSL证书
Add SSL Certificate (y/n) 
按 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: 
使用免费的Let's Encrypt SSL证书
按 2

 

Please enter your email address: 
xxxx@xxxx.comxxx

 

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


Press any key to start create virtul host...
按任意键,开始创建主机

 

等待很短时间
自动申请免费的Let's Encrypt 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......
================================================
Virtualhost infomation:
Your domain: 论坛.com
Home Directory: /home/wwwroot/论坛.com
Rewrite: ips
Enable log: yes
Database username: test
Database userpassword: ***************
Database Name: test
Create ftp account: no
Enable SSL: yes
  =>Let's Encrypt
================================================

本文章最後於,由Jack編輯
意見的連結

建立帳號或登入後發表意見

你需要成為會員才能發表意見

建立帳號

在我們的論壇註冊新帳號,只需要幾個簡單步驟!

註冊帳號

登入

已有帳號?請登入。

現在登入
×
×
  • 建立新的...