🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

#Website Building# LNMP One-Click Package Adding Virtual Host Graphic and Video Tutorial

Previously, we shared#Web Development# LNMP One-Click Package Installation Graphic & Video Tutorial, this article shares how to use LNMP to add a virtual host.

LNMP Virtual Host Addition Illustrated Tutorial

After connecting to the VPS via SSH, enter the command to add a virtual host: <code>lnmp vhost add</code>, then press Enter. The following prompt will appear:LNMP添加虚拟主机教程Enter the domain name you wish to bind here, then press Enter.LNMP添加虚拟主机教程This asks if you need to bind any other domain names.What does this mean?For example, if you need both www.naibabiji.com and naibabiji.com to access the same website, then you need to enter it here. Otherwise, just press Enter to skip.LNMP添加虚拟主机This sets the website directory. Just press Enter, and the website directory will be set to the domain folder under <code>/home/wwwroot</code>.是否启用伪静态Whether to enable pseudo-static, enter y and press Enter.输入伪静态规则Enter the rewrite rules here. For installing WordPress, simply enter <code>wordpress</code>. If WordPress is installed in a subdirectory, enter <code>wp2</code>.是否启用logEnable website logs? Enter 'y' to enable, 'n' to disable.LNMP日志名称If enabled, you need to enter the name for the log file. The default log directory is: <code>/home/wwwlogs/</code>. The default filename is: <code>domain.log</code>.启用数据库Create a database? Select 'y' for yes. If you want to create it manually or use a database from elsewhere, choose 'n'.LNMP输入数据库Enter the database password, then enter the database name and password to create, and press Enter.生成SSLThen enter 'y' to generate an SSL certificate, and enter '2' to create a free Let's Encrypt certificate. If you have your own certificate, enter '1' and then enter the corresponding certificate location.SSL证书When the interface shown above appears, it proves the virtual host has been successfully added.

LNMP Virtual Host Addition Video Tutorial

https://v.youku.com/v_show/id_XNDE4NTY3NzQ1Mg==.html?spm=a2h3j.8428770.3416059.1 If you still have questions, you can add WeChat or join the group for discussion.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: