How to configure Litespeed to work with Apache?

#1
I am on a VPS server, and using CentOS 5.4 with Apache and Lighttpd. I use Apache to serve PHP and lighttpd to serve static contents like images and videos (mostly video streaming). I put Lighttpd on port 81 and use its proxy module for working with Apache.

I want to replace Lighttpd with LiteSpeed webserver to work with Apache, which means lite speed will be serving videos and images. I wonder if this can easily done in Lite Speed webserver.

I am a newbie to Lite Speed. As my application is built for Apache, so I don't want to risk running it completely on Lite Speed.

TIA!
 

NiteWave

Administrator
#2
in this case, should be no much difference when using litespeed and lighttpd.

you can post your apache setting, proxying with lighttpd part. we can take further look at it.
 
#3
[Resolved] nginx as a reverse proxy in front of litespeed

I'm trying to use nginx as a reverse proxy in front of litespeed
in other words, litespeed would serve php files, nginx everything else

In my nginx.conf I have this
Code:
    upstream litespeed  {
        server 127.0.0.1:81;
    }
then in host configuration for php

Code:
        location ~ .php$ {
                proxy_pass   h**p://litespeed;
        }
I cant post links, so h**p .. stars are "tt"

In Litespeed control panel
configuration > Listeners
i've set ip address to 127.0.0.1 port 81
this does the trick with apache server,
but no go with lsws..

keep getting this error
2010/10/28 01:52:02 [error] 656#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 213.*.*.*, server: localhost, request: "GET /in.php HTTP/1.1", upstream: "h**p://127.0.0.1:81/info.php", host: "mysite"

do you guys even support this kinda configuration?
 
Last edited by a moderator:
#5
same deal ...
"upstream litespeed" it's just a name = 127.0.0.1:81

even if I set litespeed to run on any IP address instead of 127.0.0.1, litespeed works just fine, but with nginx in front..
just keep getting connection refused

any suggestions?
 
Last edited:
#6
I'm trying to use nginx as a reverse proxy in front of litespeed
in other words, litespeed would serve php files, nginx everything else

In my nginx.conf I have this
Code:
    upstream litespeed  {
        server 127.0.0.1:81;
    }
then in host configuration for php

Code:
        location ~ .php$ {
                proxy_pass   h**p://litespeed;
        }
I cant post links, so h**p .. stars are "tt"

In Litespeed control panel
configuration > Listeners
i've set ip address to 127.0.0.1 port 81
this does the trick with apache server,
but no go with lsws..

keep getting this error



do you guys even support this kinda configuration?
I'd also be interested in trying this out. I'd like to see how Nginx handles just the images, css and etc.. while Litespeed handles PHP.
 
#7
go it working!
Listener > Default > Virtual Host Mappings
under domains put *

pretty sweat If you are using litespeed standard edition, since php are only requests that litespeed is handling .. 150 requests doesn't sound that bad

useless without mod-rpaf ... if you want to record ip addresses that is
 
Top