Host replace for proxy configuration

Discussion in 'Install/Configuration' started by gdewey, Mar 20, 2013.

  1. gdewey

    gdewey Well-Known Member

    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 :-/
  2. NiteWave

    NiteWave Administrator

    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.
  3. gdewey

    gdewey Well-Known Member

    sure, the task would be:

    to have this as a backed server

    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 and not to my internal IP that is making the proxy.
  4. gdewey

    gdewey Well-Known Member

    from what I understand if the backend site was not rewriting all request to the domain the proxy would be changing the host with out the need of the rewrite rules..
  5. webizen

    webizen Well-Known Member

    No need to create directory. The rewrite rules should be able to handle.

    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: Mar 21, 2013
  6. gdewey

    gdewey Well-Known Member

    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

  7. gdewey

    gdewey Well-Known Member

    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
  8. NiteWave

    NiteWave Administrator

  9. gdewey

    gdewey Well-Known Member

    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

Share This Page