In our Guide to Optimizing Magento we talked about placing Nginx, pronounced “Engine X” to run as the primary web server and then use Apache as the secondary serve to deliver the PHP files. I wanted to give you some tips and additional resources to help you implement that faster. Here is a diagram that will help explain how Nginx and Apache should be setup.
If your server is already running Apache, then you’ll want to switch Apache over to listen on port 8080, or a port of your choice. Once you’re able to access Apache using http://example.com:8080, then you’ll want to install Nginx and get it running. Here’s the Configuration file for running Magento on Nginx.
Magento.conf file for Nginx
Hopefully you’ll be able to work out any bugs and get Nginx running smoothly in front of Apache. Larger websites should consider running Nginx as a load balancer on the primary node while redirecting PHP requests to the individual worker nodes.
Configuring Nginx to work with Magento [Advanced]
5 Steps to Secure your Magento Store
ReplyDelete