Host replace for proxy configuration

gdewey

Well-Known Member
#21
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 :-/
 

gdewey

Well-Known Member
#23
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.
 

webizen

Well-Known Member
#25
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.

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:

gdewey

Well-Known Member
#26
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
 

gdewey

Well-Known Member
#27
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
 

gdewey

Well-Known Member
#29
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
 
Top