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

RamNode: $4/month/15GB SSD space/unlimited traffic/Atlanta/Netherlands

RamNode, vps is quite stable and the price is fir...

phpfog free cloud hosting application and usage tutorial

The configuration of phpfog free cloud host is as...

​​​​Netmagic​s: $25/year/25GB SSD space/750GB traffic/free Comodo PositiveSSL/UK

​​​​Netmagic​s, a foreign hosting company establi...

Soaring Servers: $10/year/1GB RAM/100GB SSD/1TB bandwidth/OpenVZ/Phoenix

Soaring Servers, a new merchant, started providin...

XenSpec 1GB RAM 10Gbps ports unlimited traffic Los Angeles KVM VPS review

Details ; XenSpec: $2.95/month/1GB memory/10GB SS...

Gestion DBI 1GB RAM OpenVZ VPS Los Angeles Simple Review

Details: Gestion DBI: $11/year/1GB memory/30GB sp...

LayerVPS: £7.5/month/2GB memory/50GB SSD space/2TB traffic/1Gbps/DDOS/KVM/UK

LayerVPS, a British merchant, should have been es...