Thread: ProxyPass
View Single Post
  #2  
Old 07-31-2007, 07:29 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Assume you want to redirect URL "/backend/*" to Apache run at 192.168.0.30:8080. You need to do the following,

1. create web server external application with name "192.168.0.30:8080" or whatever you want, like "apache_backend".

2. create a rewrite rule
Code:
RewriteRule ^/(backend/.*)   http://192.168.0.30:8080/$1  [p]
The host name part of destination URL should match the name of the external application.
Reply With Quote