Apache working with Litespeed?
Apache working with Litespeed?
Due to Litespeed does not support SSI. can I do this way under Cpanel/WHM:
1) keep Apache running for SHTML file only
2) Litespeed running for all other pages and PHP programs?
3）both Apache and Litespeed will be installed on one server.
is that OK? please let me know how to do it if it's ok.
one more thing,
4) is there any way to force apache to send all visitors who visit non-shtml files/pages to a designed port powered by litespeed?
say, when a user visits www.mysite.com/123.shtml , apache will take care of it.
if the user visits www.mysite.com/vbulletin_forum/ , he will be sent to www.mysite.com:8088/vbulletin_forum
is that ok? thanks.
Actually, you should let lsws forward request to .shtml to apache via the reverse proxy interface. it should work better this way. :)
I checked the demo, saw there are some options for type web server under external app option:
I have no ideal to enter address, environment, and how to let LSWS know it need forward the request to .shtml to apache.
could you give me an example? I am totally new to LSWS. thanks.
1. run apache or port 81 or whatever port you'd like, just not 80
2. define a web server external app, address should be "127.0.0.1:81". no need to set "environment".
3. add a script handler for suffix "shtml", using the web server external app as handler. If can be done at server level or vhost level.
If any question, please read the online help first for each individual configuration option.
But Ｉ got another problem. I changed port value in apache httpd.conf
port 80 ==> port 8080
after that, when I visit my site, got
"There is no website configured at this address" shown.
do I have to change
NameVirtualHost IP.IP.IP.IP:8080 as well?
Yes, I think so.
Is LSWS using Apache's httpd.conf? If yes, you need to create a backup copy of the httpd.conf for LSWS.
Or, you can use "Apache port Offset" configuration to let LSWS run on the standard port 80 while apache on port 79 or something.
Finally, LSWS is working well at 80 port. Thanks for all help.
However, regarding sending .shtml to apache at port 8080 is still not working although I already set it up based on above instruction and the post at
I am using Apache's httpd.conf in LSWS (following the instruction at http://www.litespeedtech.com/support...:apache:cpanel ). the apache offset is 0 at this moment. I am wondering if I change anything in apache's httpd.conf, will LSWS change at same time?
The reason I am asking is that all ports are 80 in old httpd.conf, that is what I am guessing why LSWS is working at port 80 too. so, if I change them to 8080, will LSWS stop working at port 80? because they are using the same httpd.conf.
thanks for further kind help.
Yes, LSWS will change to port 8080 after restart since it uses the apache configuration.
Like what I said in last post, configure apache to use port 79 and 442 for SSL, set "Apache port offset" to "1", so LSWS will use port 80 and 443.
The external app address should change to "localhost:79" as well.
restart apache and LSWS, it should work.
After changing apache port to 79, I have the following error:
This address is restricted
This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection.
under IE, the error is:
The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.
is there way to fix it? thanks.
|All times are GMT -7. The time now is 10:28 AM.|