NGINX is a fast HTTP server, widely-used instead of or together with Apache to reduce the load on the server and increase the speed of query processing.

The modular architecture of Apache gives a lot of opportunities, which, however, won't be used by most of us. The price for this functionality is a big waste of system resources.

A common site usually contains more static files than scripts. In order to transfer these files to the visitor no special functionality is needed, the task is pretty simple. Hence we need to handle such requests with simple, lightweight web server - such as nginx.

If your site's scripts are written in a language, the interpreter of which supports FastCGI, then you don't need Apache at all. And PHP is one of such languages.

To choose nginx as an application server use our one-click widget

or follow the given instruction:

  1. Log onto
  2. Click Create Environment
  3. Pick nginx as your application server as shown in the picture below. State the cloudlets limit. Then type your environment name and click Create.

  4. Once the environment is created, you can click Open in browser button next to the nginx server in the environment (expand the environment in the Environments pane at the top of the screen):

Then you can upload your PHP application package and deploy it to the environment.


While using NGINX as an application server there are some restrictions for the size of uploaded files to the application. So if your application requires some files with the size more than 2 Mb to be uploaded, you should make the next configurations:

  1. Click Config button for NGINX app server:

  2. Navigate to the /etc/nginx directory and open nginx.conf file.
    In the http section add the following string as it is shown in the picture below.
  3. client_max_body_size 50m;

    Instead of 50MB value you can set your own custom value.

    Note that the size is limited if you don't use Public IP feature. The limit depends on your Hosting Provider (the standard restriction is 80MB). To know the exact value you can contact your Hoster's Support. If you have Public IP enabled, you can set any value without restrictions.

  4. After that don't forget to save the changes and restart your application server.