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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > proxy a directory

Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2006, 12:05 PM
mbiven mbiven is offline
New Member
 
Join Date: Sep 2006
Posts: 2
Default proxy a directory

I'm having trouble finding documentation on using the reverse proxy feature. I'm trying to have http://domain.com/directory proxied to a different site.

Thanks
Reply With Quote
  #2  
Old 09-21-2006, 12:53 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You need to define a "Web Server" external application for the target web server.
Then define a "proxy" context with URI "/directory/", select the external application just defined as handler.

All requests to http://domain.com/directory/ will be forwarded to the destination server without any change.
Reply With Quote
  #3  
Old 09-21-2006, 04:04 PM
bambito bambito is offline
New Member
 
Join Date: Sep 2006
Posts: 9
Since this is a similar thread, I won't waste space and create another one.

I set up a light apache server on the same machine running on port 8080. I setup an external app pointing to:

Type Name Address
Web Server Apache 2.2.3 localhost:8080

and script handler to:

Suffixes Handler Type Handler Name
shtml Web Server [Server Level]: Apache 2.2.3


I have two problems.

Litespeed passes .shtml to Apache fine, but if I ask for index.shtml specifically, my browser wants to download it. The other .shtml files don't have this problem.

If I change Apache to just only listen on localhost, Litespeed gives me a 503 error.

I have index.shtml under the Index Files just in case you wanted to know. Any suggestions?
Reply With Quote
  #4  
Old 09-21-2006, 06:23 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You probably need to clear your browser cache, index.shtml might be cached when the proxy has not been properly configured.

Listening on localhost will not cause 503 error, you need to make sure that localhost:8080 is working properly at Apache side.
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 05:13 PM.



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