Author: Sonassi Guru
Altering Static File Handling
Table of ContentsExamplesMageStack treats dynamic content different to static content, Eg. Different HTTP timeouts Different caching rules Different DOS rules etc. Static files by default are defined here To override the default behavior of a 404 error on non-existent static … Continue reading
Static File Definition
The following file extensions are tagged as static requests, jpeg|jpg|png|gif|ico|swf|gz|rar|txt|bzip|pdf|ttf|woff|woff2|otf|htc|svg|webp|eot Static files are defined at the time of domain-group creation and may differ between domain-groups if created at different times. ! These are subject to change and may differ depending … Continue reading
Understanding cache flow when using PageSpeed and Varnish
Table of ContentsTraffic flow When Varnish is disabled and PageSpeed is enabled (and empty) When Varnish is enabled (and empty) and PageSpeed is enabled (and empty)On MageStack, when you change a file, it changes immediately. There are no disk caches, … Continue reading
Rate Limiting API Requests
Table of ContentsOptions Enabling API Rate Limiter Examples Rate limit API to 1 request per 10 seconds Conditionally Rate limit by IP to 1 request per 10 seconds Conditionally Rate limit by user agent to 1 request per 10 secondsThe … Continue reading
Cloning Magento website (for staging/dev/uat)
Table of ContentsHooks Examples Full clone Dry run only Files only (no database) Files only (no media)MageStack has a built in feature to be able to clone an existing Magento installation with ease. This can be really useful if you … Continue reading
Editing HOSTS File
Table of ContentsWindows 7, 8, 10 Windows Vista Windows NT/2000/XP Linux Mac OS X 10.0 - 10.1.5 Mac OS X 10.6 - 10.1.8Editing your computer's HOSTS file will allow you to test your domain against a different server to what … Continue reading
Using logrotate to manage Magento logs
Logrotate is a powerful utility built into Linux as standard and can make light work of rotating Magento logs to keep them small, it is also extremely easy to implement. Simple create a file in /etc/logrotate.d/magento-example.com with the following content … Continue reading
Munin Graph Update Frequency
Table of ContentsReal-Time StatisticsThe integrated graphing facility in MageStack uses an excellent utility called Munin (see how to access Munin here). We measure and monitor every facet of the server and every application running, so that we can keep thorough, … Continue reading
Block by IP
Sometimes, your site may fall victim to an overly aggressive or problematic user. Blocking access to your server for these is very straightforward, with a simple edit to your domain's ___general/example.com.conf file Eg. To block the IP 192.168.1.1 deny 192.168.1.1; … Continue reading
Implementing If-Modified-Since
Table of ContentsAdvanced Configuration Easy Configuration NotesFor static content, the expires headers are set by default in MageStack. They can be overridden using either the native Nginx expires directive, or the more powerful $magestack_cache_lifetime (see Controlling Varnish cacheable content. For … Continue reading