Add Virtual Host to Litespeed

Add Virtual Host to Litespeed

Keep it for later use. Reprinted from: http://w0w.me/320.html
This time I will teach you how to add Virtual Host to Litespeed
To build multiple websites on one host, first connect to SSH

 1
2
 mkdir -p /usr/local/lsws/yourdomain.com //Create website directory chmod 777 /usr/local/lsws/yourdomain.com

/usr/local/lsws/yourdomain.com This path is not necessary, but I recommend it in the Litespeed directory for easier management. Log in to the Litespeed console and go to Configuration > Virtual Hosts

Press Add

Then fill in the information
Virtual Host Name: Change it at will, use the domain name for convenience
Virtual Host Root: Fill in the directory you just created with ssh
Config File: Enter $VH_ROOT/conf/vhconf.xml
Enable Scripts/ExtApps: Select Yes
Restrained:Select Yes
Keep the rest as default and press Save

It is normal to see an Error message because the configuration file has not been created. Click CLICK TO CREATE to create one automatically.

When it says that the profile has been created successfully, click Save.

Press View/Edit

General > Edit in General

Document Root:$VH_ROOT
Then Save

Press Edit in Index Files

Index Files: The default homepages (such as index.html/index.php) are arranged in order, separated by "," and then saved

Then go to Configuration > Listeners

Press View/Edit

Press Add

Select the Virtual Host you just created.
In Domains, fill in your bound domain name and click Save

Finally restart Litespeed

You upload the website files to /usr/local/lsws/yourdomain.com
Start building your website!.!

<<:  Godaddy part of the long-term 7.49 US dollars discount code

>>:  HostSo: A US hosting company that only provides virtual hosting

Recommend

How to turn off Google's SafeSearch feature

In March this year, Google's withdrawal from ...

VMHaus: Personal information leak occurred

Everyone, please change your passwords and other ...