Unix

Recent Posts

  • Sample Nginx Configuration for Magento 1

    Below you can view sample Nginx configuration for Magento 1 applications. [html] server { listen 80 reuseport; #listen 443 http2 ssl reuseport; server_name your-magento1-domain.com;; root /var/www/html; location = /js/index.php/x.js { rewrite ^(.*\.php)/ $1 last; } location / { try_files $uri $uri/ @rewrite; } location ~ /(app|var|downloader|includes|pkginfo)/ { deny all; } location ~ rss/(order|catalog) { deny…

    View Post »

  • Sample Nginx Configuration for Magento 2

    Below you can view sample Nginx configuration for Magento 2 applications. For security reasons, you should ensure that the Magento 2 document root is set to the pub subdirectory to protect root directory assets, such as the app directory. [html] ## Example configuration: # upstream fastcgi_backend { # # use tcp connection # # server…

    View Post »

  • Wrong Webroot with Atomic Deployments and PHP FPM

    If using Nginx and PHP FPM as a web server solution, then you might have experienced a strange issue involving atomic deployment strategies for your web application. Atomic deployment solutions, such as Capistrano, create a symlink to the current application release directory. When a new deployment takes place, Capistrano simply updates the symlink to the…

    View Post »