proxy a directory

mistwang

LiteSpeed Staff
#2
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.
 
#3
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?
 

mistwang

LiteSpeed Staff
#4
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.
 
Top