Litespeed 4.0.10 Proxy Issues

#1
Hi

I'm trying to set up a proxy contect to an Web Server defined in External Apps.

The context is configured as /test/ and he webserver is at 127.0.0.1:8899

However I am seeing the /test/ part of the URL being passed directly through to my external web application which then throws a 404 as it doesn't expect it.

Is this correct behavior? I've not had any issues with other external web servers I have proxied too before.

Is this something I can resolve using rewrite rules to strip out the /test/ from the rewritten URL?

TIA

Paul
 

NiteWave

Administrator
#2
RewriteRule /test/(.*) http://backend8899/$1 [P]

need define an backend8899 External App first:
type:Web Server
Name:backend8899
Address:127.0.0.1:8899
...
 
#3
Hi

Thank you, that half solved the problem but I think the content being returned still needs to be rewritten so that the URL's map to /test/.

I think I will ask the app vendor if they can fix it so their URL's are not absolute to /
 
Top