1. Install Nginx:
sudo apt-get install nginx
2. Where are the files?
dpkg -L nginx-full dpkg -L nginx-common dpkg -L nginx
3. Starting and stopping:
cd /etc/init.d sudo ./nginx start sudo ./nginx stop
4. Go on a test drive. Start the server, then,
Default document root is /usr/share/nginx/html. Change index.html there and make sure changes are picked up by the server.
View the access log file: /var/log/nginx/access.log.
4. Edit basic settings like document root
5. Edit advanced settings like worker process, log file location:
Note: total number of HTTP requests served = worker_processes X worker_connections.