Adding rewrite for www to non-www

The easiest way to add an Nginx rewrite to redirect your traffic from www to non-www is to add the following Nginx code snippet to your domain's ___general/example.com.conf file. set $redirect "0"; if ($host ~* "^www\.example\.com$") { set $redirect "go"; … Continue reading

PHP Application Error Logs

Table of ContentsPHP Error log PHP Daemon log PHP Slow log PHP Suhosin logThere are 4 different types of PHP logs on MageStack PHP Error log PHP Daemon log PHP Slow log PHP Suhosin Security log PHP Error log This … Continue reading

Multistore Magento Configuration

Table of ContentsSharing the document root Identical document root Different document root Setting the run codes Example: Set environment variables for a domain Example: Set environment variables for a sub-domain Example: Set environment variables for a sub-directory Example: Set environment … Continue reading