Nginx web server in Android | Termux

What is nginx ?

Nginx is a web server which can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache. The software was created by Igor Sysoev and first publicly released in 2004. A company of the same name was founded in 2011 to provide support and Nginx plus paid software.


How to install nginx ?

open termux app and type following commands.
  • $ pkg install nginx
To start nginx web server type:
  • $ nginx
Now open your browser and type localhost:8080 it will open the server.


To stop nginx server type:
  • $ nginx -s stop
using nginx web server you can test you website on localhost server and lots more..

Comments

  1. How to configure domain in nginx?

    ReplyDelete
  2. I was following a very complicated manual setup, thank god I found this page, very simple, thank you!

    ReplyDelete

Post a Comment