varnish pressflow

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
pris54's picture

Varnish to redirecting users based on their IP

Apologies in advance if this is not the best place to ask for help, I've been looking for the most relevant group and this one seems the most appropriate.

I'm trying to get Varnish to redirect users based on their IPs, for example:

1) Users with IPs from Cambodia, Indonesia, Malaysia and Thailand should be redirected to [my website]/my (this is the Malaysian version)

2) Users with IPs from Bangladesh China, Hong Kong, Japan and Singapore should be redirected to [my website]/sg

3) The rest of the IPs remain in my default site

Read more
dmclark84's picture

Blank page on 301 and 302 redirects from Varnish

Using the latest version of Pressflow 5.x. For pages that function as a 301/302 redirect I get a white page of death and the following response headers.

Read more
james_agnew's picture

Varnish config to cache everything except a couple of pages

Hello

Mercury 1.0 looking really good - nice work.

We have an anonymous website where we want everything to be cached by Varnish except

/somepage
/someotherpage

We set a couple of cookies (read by JS only, not Drupal) so I'd like to know whether we still need to strip these cookies via the.vcl file in order to force all pages to be cached?

Drupal users access the database via a different front end server that does not have Varnish running.

Thanks, James

Read more
Subscribe with RSS Syndicate content