Quickly change nginx configs
Shell script to change nginx configs to ignore logins and cookies.
See these pages for info on why you may want this: http://plone.org/products/plone/security/advisories/cve-2011-0720 and http://plone.org/documentation/kb/disable-logins-for-a-plone-site
If you want to change lots of nginx config files to temporarily switch off login (authentication) and cookies, you can use this bash script at your own risk:
#! /bin/bash # Note: /bin/sh would be better, but at least when that points to # /bin/dash it complains about some of my usage of 'test'. cat < $CONFFILE fi fi fi done echo "Do not forget to reload or restart nginx after changes."