Avoid ReWrite Rule

Jan-Hendrik Lendholt jhl at contentfleet.com
Thu Oct 13 09:42:58 CEST 2011


Hi there,

we've got a backend sever (apache2, php5.2) and want to put varnish in 
front of it.

I installed varnish parallel to the running set-up.

Now apache runs on 80, I want varnish to run on 8080.

I set:

backend default {
      .host = "127.0.0.1";
      .port = "80";
}

when I call domain:8080, I just get a "301 moved permanently" and I get 
redirected to domain:80.

I saw some rewrite rules that forward all requests, not being on 
domain:80 or domain:80/some/content/here always to domain:80 in order to 
always show the landing page.

Is there a possibility to avoid that?

Thanks in advance!

Jan




More information about the varnish-misc mailing list