Tuesday, October 13, 2020

Nginx

 
 

Before explain Nginx we have to explain many things , now let us say we want to visit google.com so we will open our browser and type the URL www.google.com and but actually what is happening ?

when we visit any web site we actually visit a computer or a WEB SERVER , so the web server is the computer that has a public ip and domain and it can provides web pages , so any web site that we visit can be a computer (server) or more than on computer (servers) 
 
 
Web server 
    is a computer that can deliver requested web pages , and it has ip address and domain name  
 

now how to make my computer work as web server ?

To make any computer works as a web server we have to do two main things 
     _ Use web server software , which is that software make your computer act as web server , and these software can be (XAMPP , Nginx, microsoft IIS ... etc)
     _ connect your computer to the global network  

 

What is Nginx ?

NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. It started out as a web server designed for maximum performance and stability. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers. (ref)


How to install nginx on ubuntu ?

open your terminal and write down the commands bellow 

       sudo apt-get update

       sudo apt install nginx

 after install it , you can check it by open "localhost" on your browser , and if it open the page on the image above that means it installed successfully 


Create your website with nginx

Default page is placed in /var/www/html/ location. You can place your static pages here, or use virtual host and place it other location


No comments:

Post a Comment

Odoo Invoice Qr code issues

There are two main issues must of us facing with the QR code in Odoo invoice & these issues are 1/ QR code displayed as broken image w...