Owner and group for the new virtualhost

gusto

New Member
#1
I ran apache2 for a few years and there I used the owner and group for all virtualhosts www-data:www-data.
OLS runs by default under nobody:nogroup.
I create a new Vhost, according to the manual, where I set the owner and group to lsadm:lsadm.
When I create another Vhost, what name and group should I use?
Should I always create a new owner and set it for each vhost?

Code:
chown user1:user1 /usr/local/lsws/vhost1/conf
chown user2:user2 /usr/local/lsws/vhost2/conf
chown user3:user3 /usr/local/lsws/vhost3/conf
Or should I use nobody:nogroup for every vhost?
 

Cold-Egg

Administrator
#2
If you own all the sites and used to use one user account for all the virtual host, then you can do the same with OLS by using nobody:nogroup.
Note, you can also change the OLS user and group to www-data:www-data via the config file if needed.
 

gusto

New Member
#3
I'm just testing OLS for now. If I want to allow hosting for some friends in the future, is it safe to have each web root under nobody:nogroup ?
 

Cold-Egg

Administrator
#4
Better to set different accounts for each then. If it's too much trouble for you to set up the account, maybe you can find some control panels that support OpenLiteSpeed to take care of this part for you.
 
Top