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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Host replace for proxy configuration

Reply
 
Thread Tools Display Modes
  #21  
Old 03-20-2013, 10:32 PM
gdewey gdewey is offline
Member
 
Join Date: Mar 2013
Posts: 38
What you are suggestion is to have my front with a directory in the case the backend does not match the required host (that needs a rewrite function)?

if I set a different context than / I will get 404 from the target since its interpreted as a directorie :-/
Reply With Quote
  #22  
Old 03-20-2013, 10:36 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
can you give an example URL, so make it easier to discuss, to see if current lsws can do it or not based on my experience.
Reply With Quote
  #23  
Old 03-20-2013, 10:41 PM
gdewey gdewey is offline
Member
 
Join Date: Mar 2013
Posts: 38
sure, the task would be:

to have this as a backed server 50.22.195.205:80

then try to proxy on any LS server to have it as a front end.

In my case a have a local VM as my front end and targets this IP I just have you.

The links in my cache site point to www.vanguardia.com.mx and not to my internal IP that is making the proxy.
Reply With Quote
  #24  
Old 03-20-2013, 10:45 PM
gdewey gdewey is offline
Member
 
Join Date: Mar 2013
Posts: 38
from what I understand if the backend site was not rewriting all request to the domain www.vanguardia.com.mx the proxy would be changing the host with out the need of the rewrite rules..
Reply With Quote
  #25  
Old 03-21-2013, 11:02 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Quote:
Originally Posted by gdewey View Post
What you are suggestion is to have my front with a directory in the case the backend does not match the required host (that needs a rewrite function)?

if I set a different context than / I will get 404 from the target since its interpreted as a directorie :-/
No need to create directory. The rewrite rules should be able to handle.

Quote:
Originally Posted by gdewey View Post
from what I understand if the backend site was not rewriting all request to the domain www.vanguardia.com.mx the proxy would be changing the host with out the need of the rewrite rules..
It is the proxy handles the host header rewrite. Backend server does not do anything differently.

To be more efficient, you may pm the server temp access for us to check. Once a solution is worked out, it can be published on forum for other's benefit.

Last edited by webizen; 03-21-2013 at 11:16 AM..
Reply With Quote
  #26  
Old 03-21-2013, 11:43 PM
gdewey gdewey is offline
Member
 
Join Date: Mar 2013
Posts: 38
mh I have it on a virtual machine on my lap because I am evaluating the functionality, let me set up a server in the office so I can publish it an give you access

tks
Reply With Quote
  #27  
Old 03-22-2013, 06:27 PM
gdewey gdewey is offline
Member
 
Join Date: Mar 2013
Posts: 38
I set up new server in my LAN to test the reverse proxy/cache and it does what it suppose. there must be something with the first try that was not right.

the server / proxy / cache solution is very precise and fast seem to be as fast as varnish or aicache servers. I will have to make a load test this week.

by the way, is there a way to expire cache on a non time based basis? that is using an http request or something that I can control with certain criteria?

will be streaming some xml files to load some grids and graphics but they will come in unexpected times. I need to refresh the cache when they come in.

a http api would be very nice to have so we can just curl/http some url and expire the cache
Reply With Quote
  #28  
Old 03-22-2013, 08:01 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
for purge / refresh cache, please refer
http://blog.litespeedtech.com/2013/0...en-you-update/
Reply With Quote
  #29  
Old 03-22-2013, 09:03 PM
gdewey gdewey is offline
Member
 
Join Date: Mar 2013
Posts: 38
Exactly just what I needed normally we have to balance more srvr than normal to support the expiration part where cfm or php needs to be interpreted

Tks a lot
Guillermo
Reply With Quote
Reply

Tags
proxy rewrite

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 06:25 PM.



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