adding pre and post config to fastcgi template