LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   ProxyPass (http://www.litespeedtech.com/support/forum/showthread.php?t=1219)

protocole 07-30-2007 11:13 PM

ProxyPass
 
I've proxypass setup in my apache virtual entries and I'm using your product with apache load configuration but the problem proxypass sites IP aren't able to pull data from other servers because litespeed doesn't work with proxypass setup.


According to LiteSpeed techs it does not support the proxypass directive in Apache httpd.conf. You have to use our own web console for a reverse proxy setup.

Another approach you can try is to use a rewrite rule, you must define a
Proxy external app using the IP address of target server as the app
name. Then when the IP address is referred in the rewrite rule, LSWS can
redirect the request to the backend HTTP server.

So If you can tell me bit more detail then I would be appreciated your help.

Thank you :)

mistwang 07-31-2007 07:29 AM

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.

protocole 08-01-2007 02:14 AM

one more question
 
Do I need to add this line in apache config file or in xml file for proxypass domain?

Thank you

mistwang 08-01-2007 06:56 AM

In Apache config file, since all vhosts are configured through httpd.conf, right?


All times are GMT -7. The time now is 07:53 AM.