Proxy Setup for LiteSpeed
Hi everyone , specially dear admins !
i saw a note in LiteSpeed tools :
it yes , how can i do that ?
anybody can't help me ?!
yes, follow the document will do:
step 1:define a "Web Server" External App:
Web Server is a server application that supports HTTP 1.0/1.1 protocols. LiteSpeed web server can serve as a transparent reverse proxy to accelerate and protect any web server and application server. "
step 2:define Proxy Context
add Context, select type "Proxy", select the web server defined in step 1.
Description: Proxy context enables this virtual host as a transparent reverse proxy server. Proxy server could be running in front of any web servers or application servers that supports the HTTP protocol. External web server has to be predefined in External Application."
web server setting example:
Connection Keepalive Timeout:60
Initial Request Timeout (secs):10
Retry Timeout (secs):3
Other fields can be empty.
for step 2, I'm managing a dedicated server, so I defined several virtual hosts.
I know in WHM/cPanel env, virtual host list can be empty and everything can be read from http.conf. not sure how to do in WHM/cPanel env, so below only refer dedicated server case.
Configuration->Virtual Hosts, my defined 3 virtual hosts list there under "Virtual Host List". Click 1 of them, then you can see "Context" button. Click the "Context"-->Add, select Type "Proxy",specify URI, Web Server. Example setting:
This means all visits to yourhost.com/images/, LSWS receives the requests, then pass to server abcd_server to handle the requests, abcd_server return the response result to LSWS, finally LSWS return the result to user browser.
For URIs other than /images/, LSWS may directly process them, or pass to another web server(like abcd_server) to handle it. Users can only see yourhost.com, abcd_server etc backend severs are transparent to them.
Nice Job !
i got everything ! , but i wana do this for whole of my server ! i need it only for DDOS protection , how can i config it to every connection , like site opening , ddos attacks and .... redirect to a Proxy and anyone can't determine my main ip address ?!
i wana a thing like VPN for linux vps ,
best regards ,
|All times are GMT -7. The time now is 02:41 PM.|