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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Litespeed 4.0.10 Proxy Issues

Reply
 
Thread Tools Display Modes
  #1  
Old 09-15-2009, 09:46 AM
harrinp1 harrinp1 is offline
Member
 
Join Date: Jul 2003
Location: Chester, UK
Posts: 12
Default Litespeed 4.0.10 Proxy Issues

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
Reply With Quote
  #2  
Old 09-15-2009, 11:25 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
RewriteRule /test/(.*) http://backend8899/$1 [P]

need define an backend8899 External App first:
type:Web Server
Name:backend8899
Address:127.0.0.1:8899
...
Reply With Quote
  #3  
Old 09-16-2009, 02:50 AM
harrinp1 harrinp1 is offline
Member
 
Join Date: Jul 2003
Location: Chester, UK
Posts: 12
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 /
Reply With Quote
Reply

Tags
proxy

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 12:42 AM.



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