What is nginx?

  • Most widely used web server
  • Faster, lighter and scalable than other web servers like Apache

nginx

Characteristics

1) Performance: event-driven asynchronous architecture - performant even in heavy traffic 2) Load Balancing and security

How to Configure

1. install nginx(linux)

sudo apt-get install nginx

2. make a new config in /etc/nginx/sites-available

  • just remove default. Gives me errors even if I rename it. nginx2

nginx3

sudo ln -s /etc/nginx/sites-available/ffxiv-simhelper.conf /etc/nginx/sites-enabled/ffxiv-simhelper.conf

4. Test React Connection

sudo nginx -t

nginx4

5. Restart nginx gives error

sudo systemctl stop nginx
sudo systemctl start nginx

nginx5

port is already in use - seems like apache2 is running.

nginx6

apache2 seems like apache web server. Stopping apache web server and restarting nginx does the trick.

nginx7