PDA

View Full Version : Virtual hosts problem


lamnk
09-04-2007, 12:51 PM
Hello,

I installed LSWS standard on my linux VPS and followed the guide in wiki (http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:apache:plesk) to replace Apache with LSWS. Everything went fine until i disabled Apache and turn LSWS on: all the domains/sites on my server go to the main domain which is the name of the server.

I added the virtuals hosts under PHPsuExec template and then went to listener to add virtual host mappings but the drop down box is blank.

Any help is appreciated.

mistwang
09-04-2007, 01:05 PM
You should use the phpsuexec template, everything should be configured though Apache's httpd.conf.
You should try LSWS on another port with "port offset" = 2000.
And you can try our 3.2.2 build: http://www.litespeedtech.com/packages/3.0/lsws-3.2.2-std-i386-linux.tar.gz

lamnk
09-04-2007, 04:10 PM
I have figured out the reason but don't know how to fix it: because plesk doesnt't store virtual host settings in httpd.conf but in each virtual host's conf directory.

But why all the traffic still route to the main domains when i added a virtual host under PHP_Suexec template??

mistwang
09-04-2007, 04:17 PM
I recommend you to try a fresh installation with 3.2.2 release by strictly following the tutorial. It should work.

mistwang
09-04-2007, 04:22 PM
I think I know why it does not work with your plesk installation. standard edition has 5 hosts limit from apache configuration. Plesk create too many default vhosts, so the limit has been reached before a real vhost was configured. that's why you only see the default page. Enterprise edition does not have this issue.
If you want to manage all your sites via litespeed web console, you have to follow other tutorials like those from http://www.usefuljaja.com/litespeed

lamnk
09-05-2007, 09:02 AM
Thanks, i don't use apache configuration anymore and manually create vhost. Work great now.

grep
10-03-2007, 12:09 PM
I think I know why it does not work with your plesk installation. standard edition has 5 hosts limit from apache configuration. Plesk create too many default vhosts, so the limit has been reached before a real vhost was configured. that's why you only see the default page. Enterprise edition does not have this issue.
If you want to manage all your sites via litespeed web console, you have to follow other tutorials like those from http://www.usefuljaja.com/litespeed

What is a vhost? Does that mean you cant have any more than 5 web sites? I'm on plesk as well?

I'm kinda a newbee with this so please bare with me ;)

mistwang
10-03-2007, 12:28 PM
Yes, that is correct with standard edition.