简体   繁体   中英

How to host two or more Websites on one Virtual instance in Google Cloid

I have:

  1. Set up a openlitespeed-wordpress-1-vm package on a virtual instance of a google compute engine. This installs the following softwares:

Operating System Ubuntu (20.04) Software WordPress (5.4.1) PHP (7.3) OpenLiteSpeed (1.6.13) phpMyAdmin (5.0.2) MariaDB (10.4) Redis (5.0.7) Memcached (1.5.22) CertBot (0.40.0

  1. Setup a Wordpress site on above and migrated one of my existing Wordpress websites ( say www.site1.com ) to it.

Now, on the SAME virtual instance, I want to install ANOTHER wordpress Website ( say www.site2.com ).

How can this be done? All pointers, weblinks etc. will be MUCH apreciated. I am a computer newbie but can do basic tasks such as running linux commands etc.

Thanks for all help !

Doc is here .

If you launch the VM from the 1click/Marketplace, then here's an example for you to setup a new site / virtual host in CLI command:

/bin/bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/vhsetup.sh ) -d www.site2.com -le admin@example.com -f -w
  • -le admin@example.com is for apply Let's encrypt certificate
  • -f is force to use HTTPS
  • -w is to auto setup a wordpress

PS Please run script with root privileges

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM