Varnish configuration
-
Please tell me the configuration of varnish. i am new on pfsense.
i don't know that what values i shall have to write on varnish setting:
Listening port ??????
Managment interface??????
Advanced startup options?????
Storage type ???????
Cache storage size in megabytes/??????
Minimum worker threads ?????????
Maximum worker threads ??????
Worker thread timeout??????
Client identity method?????????
Don't cache posts ?????
Don't cache posts ???????
Session Cache???????
Cache static content??????
Fix gzip compression ???????
Be RFC2616 compliant ?????????????
Foward client IP ????????
Fetch Grace???????
Retries ??????????
Saintmode?????
Custom Html error message??????? -
take a look at varnish documentation.
Varnish is not so easy to configure, the gui helps, but it still need some varnish knowledge.
@crazyzoar:Please tell me the configuration of varnish. i am new on pfsense.
i don't know that what values i shall have to write on varnish setting:
Listening port (usually 80)
Managment interface (usually localhost)
Advanced startup (usually empty)
Storage type (ram for better performance)
Cache storage size in megabytes/ (depends on how much ram/disk you have)
Minimum worker threads (could be 32 but depends on your hardware)
Maximum worker threads (could be 1024 but depends on your hardware)
Worker thread timeout (could be 300)
Client identity method (ip address is more compatible with sessions)
Don't cache posts (yes, don't)
Session Cache (per user is a good choice ) take a look on field documentation link
Cache static (when possible cache only in session, always remove cookies before cache)
Fix gzip compression recommended
Be RFC2616 compliant recommended
Foward client IP userfull to log remote ip on web servers using x-forwarder-varnish var
Fetch Grace How many time varnish will keep cached objects. HINT 60s, 30m, 1h
Retries how many times retry url before sending error to users or checking for fail over
Saintmode How many time varnish will send cached objects from a down backend to client. HINT 60s, 30m, 1h
Custom Html error message how to send error messages to users