LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LSWS 4.1 Release > Adding vhosts by creating a file?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2009, 05:57 PM
Michael.Terence Michael.Terence is offline
Member
 
Join Date: Jan 2009
Posts: 28
Default Adding vhosts by creating a file?

I could swear I read somewhere that with the 4.0 release you could add vhosts to templates by creating a file on the filesystem - but I can't find it again or any other details about it.

Have I lost my mind, or has this been implemented? I've been writing my own control panel for my non profit - and have left the addon domain till last in the hopes that I'd be ready to upgrade to 4.0 about the time I started work on it.

If this has been implemented can you provide me a link to some additional documentation? Will a reload be required to activate the new vhosts? If so, is there any way to reload that by an unprivledged user?
Reply With Quote
  #2  
Old 02-04-2009, 08:43 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
It has not been implemented.
Reply With Quote
  #3  
Old 02-23-2009, 02:01 PM
raphidae raphidae is offline
Senior Member
 
Join Date: Apr 2008
Posts: 59
Perhaps my solution on adding vhosts using xsh is of use: http://obhasa.mediamonks.net/newhost.sh.txt

It could easily be adapted to write a seperate config file for each vhost instead of adding vhosts to a template.

As to your reloading question: lsws needs to be reloaded, I believe this does not interrupt service. You can use sudo to let unprivileged user 'user' reload lsws by adding to sudoers:

Quote:
Cmnd_Alias LSWS = /opt/lsws/bin/lswsctrl restart
user ALL = (root) NOPASSWD: LSWS
Or you could cron a script that checks for the existence of a file (i.e. 'request_lsws_restart') in users home directories and restarts lsws and deletes the file if present (make sure it is a file! otherwise an user could make it a symlink to /etc/passwd :-)).

Last edited by raphidae; 02-23-2009 at 02:12 PM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:12 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.