WebFaction
Community site: login faq

I'm following

http://community.webfaction.com/questions/2263/how-do-i-use-varnish-to-cache-my-plone-site#fmanswer

I have the domains www.mydomain.example and mydomain.example added to a website mywebsite1 that points to the Varnish app. In the Zope app I have VHM mappings like these:

mydomain.example/myplonesite1
*.mydomain.example/myplonesite1

(I also have a website mywebsite2 with the domain myotherdomain.example that points directly to the Zope app; myotherdomain.example is not in the VHM Mappings, so I can access the ZMI directly).

Do you have any advice on whether or not to enable the option 'Virtual host rewriting takes place front of the caching proxy' in the section Site Setup > Caching > Caching Proxies
since it is not clear to me if/where host or URL rewriting takes place in my set-up.

asked 22 Oct '12, 05:18

rogererens
1123
accept rate: 0%


Since you're using VHM, and VHM handles your virtual host rewriting, and VHM runs in Zope, and Zope runs behind Varnish, you should not enable the 'Virtual host rewriting takes place front of the caching proxy' option.

permanent link

answered 22 Oct '12, 08:27

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×23
×18
×7
×1

question asked: 22 Oct '12, 05:18

question was seen: 4,117 times

last updated: 22 Oct '12, 08:27

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM