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:
- Log ontoJelastic
- Click Create Environment
- Pick nginx as your application server as shown in the picture below. State the cloudlets limit. Then type your environment name and click Create.
- 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.