litespeedtech / ls-cloud-image

GNU General Public License v3.0
36 stars 38 forks source link

Script to add a new virtual host for the Litespeed Enterprise version #33

Closed Alnaggar94 closed 2 years ago

Alnaggar94 commented 2 years ago

Hello I used this command to upgrade to Litespeed Enterprise and all the current vhosts converted to work with Litespeed Enterprise fine: /bin/bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/ols2ent-v2.sh )

But I can't add a new virtual host using the script vhsetup.sh I tried to add a new domain after I upgraded to Litespeed Enterprise using the command: bash vhsetup.sh -d domain.com and it doesn't work.

It will be great if there is a simple script to add a new virtual host for the Litespeed Enterprise version like the vhsetup.sh script in Openlitespeed

Code-Egg commented 2 years ago

Thanks for the suggestion, will see what we can do.

Alnaggar94 commented 2 years ago

Thanks for your reply, I hope we can see it soon

Code-Egg commented 2 years ago

Done, please give it a try and let me know if there's any issue.

And, I'd recommend you to add --backup parameter when adding or deleting vhost, it will back up the server config file just in case the new code goes wrong.

bash vhsetup.sh -d domain.com --backup