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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Apache working with Litespeed?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-28-2006, 01:56 PM
surfman surfman is offline
Member
 
Join Date: Dec 2006
Posts: 27
Default 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.

thanks.
Reply With Quote
  #2  
Old 12-28-2006, 04:14 PM
surfman surfman is offline
Member
 
Join Date: Dec 2006
Posts: 27
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.

Last edited by surfman; 12-28-2006 at 04:22 PM..
Reply With Quote
  #3  
Old 12-28-2006, 08:33 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Actually, you should let lsws forward request to .shtml to apache via the reverse proxy interface. it should work better this way.
Reply With Quote
  #4  
Old 12-29-2006, 05:35 AM
surfman surfman is offline
Member
 
Join Date: Dec 2006
Posts: 27
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.

Last edited by surfman; 12-29-2006 at 06:40 AM..
Reply With Quote
  #5  
Old 12-29-2006, 09:10 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
For example,
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.
Reply With Quote
  #6  
Old 12-29-2006, 09:34 AM
surfman surfman is offline
Member
 
Join Date: Dec 2006
Posts: 27
got it.

But I 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:80

to

NameVirtualHost IP.IP.IP.IP:8080 as well?

thanks.
Reply With Quote
  #7  
Old 12-29-2006, 09:42 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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.
Reply With Quote
  #8  
Old 12-29-2006, 12:17 PM
surfman surfman is offline
Member
 
Join Date: Dec 2006
Posts: 27
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

http://litespeedtech.com/support/for...read.php?t=605

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.

Last edited by surfman; 12-29-2006 at 12:27 PM..
Reply With Quote
  #9  
Old 12-29-2006, 01:36 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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.
Reply With Quote
  #10  
Old 12-29-2006, 02:56 PM
surfman surfman is offline
Member
 
Join Date: Dec 2006
Posts: 27
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.

Last edited by surfman; 12-29-2006 at 03:01 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 03:38 PM.



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