Add the following to wp-config.php... Ref: http://naze.mine.nu/?p=363
Month: January 2013
SSL -> Nginx -> Varnish Infinite Redirect
Add the following code, when you use SSL => Nginx => Varnish stack and if you experience infinite redirect...
nginx error: (99: Cannot assign requested address)
Ref: http://stackoverflow.com/a/13141104/1004587 With Amazon EC2 and elastic IPs, the server doesn't actually know its IP as with most any other server. So you need to tell your linux to allow processes to bind to the non-local address. Just add the following line into /etc/sysctl.conf file: and then reload your sysctl.conf by: which will be fine on reboots.
Run PHP with mod_fcgid in Apache
View Allocated Memcached Memory
Here is a little snippet to see the allocated memory for memcached server in an Debian based distribution... This will output the max memory that memcached server can use in MBs.
Setlocale warning on a new installation – en_US.UTF-8
Just do the following and ignore the rest of this post... When setting up a VPS in Paris data center, in Gandi.net, upon starting the Ubuntu for the first time, I received the following warning message... References http://askubuntu.com/a/114781/65814 http://sysadminnotebook.blogspot.in/2012/06/locale-cannot-set-lcall-to-default.html Solution
Install Notes for Varnish 3.0 Configuration Templates by Mattias Geniar
Mattias Geniar has some in-depth configuration for Varnish. However, the install notes are far from complete. Mine doesn't even have any install notes. 🙂 So, here is a quick install guide... In production.vcl, in vcl_fetch, please add the following lines just before return (deliver)... In the same file (production.vcl), in vcl_fetch logic, please remove the … Continue reading Install Notes for Varnish 3.0 Configuration Templates by Mattias Geniar