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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Setting up reverse proxy server

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2011, 07:22 AM
kosherfrog kosherfrog is offline
New Member
 
Join Date: Oct 2010
Posts: 2
Default Setting up reverse proxy server

I need help to set up a reverse proxy server that can proxy on port 80 a custom application on localhost port 9090.

Even though I have added an external application to the virtual host, nothing is happening, so it's clear I am missing at least a step. Is there any full documentation about setting up a reverse proxy server on LiteSpeed, with instructions regarding rewrite, external apps, etc.?

Thanks,
Reply With Quote
  #2  
Old 01-03-2011, 10:11 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Here is the document:

http://www.litespeedtech.com/how-tos.html#qa_sproxy

How to set up LiteSpeed Web Server as a reverse proxy server?

LiteSpeed Web Server can be used as a transparent reverse proxy server running in front of any web server or application server that supports HTTP protocol, to help improve the scalability, performance and security of the whole system.
Please set up in the WebAdmin console according to the following steps:
Define an External Application with Type Web Server. Set Address to the IP address and port used by the backend web server.
Two choices:
Define a Proxy Context with Web Server set to the External Application just defined.
Define a Script Handler with Type Web Server, and Handler Name set to the External Application just defined.

If customer application is setup as name based vhost(need host header matches with server name), proxy request "Host" header needs to be modified in rewrite rule. Here is how:

say web site domain name is "www.example.com", it proxy request to backend, backend is defined as a web server with name "node1", it requires domain name to be "node1.example.com", the rewrite rule (web admin console->Configuration->Virtual Hosts->www.example.com->Rewrite) should be
^/(.*)$ http://node1/$1 [P,E=Proxy-Host:node1.example.com]
Reply With Quote
  #3  
Old 01-03-2011, 02:07 PM
kosherfrog kosherfrog is offline
New Member
 
Join Date: Oct 2010
Posts: 2
Thank you!
I found a third solution that I will document a bit later.
But now I have an additional issue. Is it possible to get the proxy password protected?
I tried to emulate the password protection found in the example but that doesn't work since it wants the proxied app to be password protected.
Reply With Quote
  #4  
Old 01-03-2011, 04:00 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
http://www.usefuljaja.com/2007/5/lit...ord-protection
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 09:13 AM.



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