I have the same stuff on my backends and what you have here should work.
The only thing I can think of from your example is a missing 'RewriteEngine on' on top. If I don't have that the rewriting is silently ignored by apache.


On 24-Feb-2010 22:21, John Norman wrote:
Sorry about all the questions . . .

On my backend I want to redirect domain.com <http://domain.com> to www.domain.com <http://www.domain.com>

I see Host: domain.com <http://domain.com> in both the RX and TX sections of the log . . . but the redirect isn't getting triggered.

The backend is Apache, and the redirect directives are routine.

  RewriteCond %{HTTP_HOST} ^domain.com <http://domain.com>$ [NC]
  RewriteRule ^(.*)$ http://www.domain.com$1 [R=301,L]

Am I missing something?

John


_______________________________________________
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc
_______________________________________________
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to