Is it possible to make Nginx listen to different ports?

Yes, it is. What you probably want is multiple “server” stanzas, each with a different port, but possibly (probably?) the same server_name, serving the “different” content appropriately within each one, maybe with a different document root in each server. Full documentation is here: http://nginx.org/en/docs/http/server_names.html Example: server { listen 80; server_name example.org www.example.org; root /var/www/port80/ } … Read more

Why do we use a OS Base Image with Docker if containers have no Guest OS?

Since all Linux distributions run the same (yup, it’s a bit simplified) Linux kernel and differ only in userland software, it’s pretty easy to simulate a different distribution environment – by just installing that userland software and pretending it’s another distribution. Being specific, installing CentOS container inside Ubuntu OS will mean that you will get … Read more

tech