{"id":437,"date":"2018-02-20T12:52:51","date_gmt":"2018-02-20T12:52:51","guid":{"rendered":"http:\/\/www.tco-team.com\/blog\/?p=437"},"modified":"2018-02-28T12:37:52","modified_gmt":"2018-02-28T12:37:52","slug":"web-servers","status":"publish","type":"post","link":"https:\/\/tco.am\/blog\/web-servers\/","title":{"rendered":"Web Servers"},"content":{"rendered":"<p><strong>Web Servers Architecture and Functionality<\/strong><\/p>\n<p>Server is very similar to our daily used computers. It consists of a mother platinum, processor, operative memory and hard disk. Unlike our computers, however, it is more powerful. The main characteristic of the server is the remote work with many clients. It answers to the all requests coming from the different corners, develops them and sends a response.<\/p>\n<p style=\"float: right;\"><!--more--><\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-438 aligncenter\" src=\"http:\/\/www.tco-team.com\/blog\/wp-content\/uploads\/2018\/02\/client-server-architecture.png\" alt=\"\" width=\"484\" height=\"246\" srcset=\"https:\/\/tco.am\/blog\/wp-content\/uploads\/2018\/02\/client-server-architecture.png 484w, https:\/\/tco.am\/blog\/wp-content\/uploads\/2018\/02\/client-server-architecture-150x76.png 150w\" sizes=\"(max-width: 484px) 100vw, 484px\" \/><\/p>\n<p>Our computers can also be a server. You need to install a server on computer (for example` Apache web server). Ask Internet Provider to supply static IP address and then obtain Domain. However, our computers cannot handle many requests because they have weak parameters. Additionally, computer must be turned on for 24 hours, otherwise it will be unavailable for remote clients. The server can be one powerful computer, as well as a set of computers that connect to one another and are considered to be one server.<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-440 aligncenter\" src=\"http:\/\/www.tco-team.com\/blog\/wp-content\/uploads\/2018\/02\/dedicated-vs-shared.jpg\" alt=\"\" width=\"580\" height=\"282\" srcset=\"https:\/\/tco.am\/blog\/wp-content\/uploads\/2018\/02\/dedicated-vs-shared.jpg 580w, https:\/\/tco.am\/blog\/wp-content\/uploads\/2018\/02\/dedicated-vs-shared-150x73.jpg 150w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/p>\n<p><strong>Dedicated server<\/strong> \u2013 When a hosting company provides the client a single server with all of its parameters.<\/p>\n<p><strong>Shared server<\/strong> \u2013 Is a powerful server which consists of many virtual parts and gives an opportunity to the client to choose, for example what Operation System and Operative memory they want.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Operational System in Server<\/strong> \u2013 Generally, the most used is Linux Operation System especially CentOS, which has flexible configuration possibilities and security system. In servers are also used Windows server Operation System which is created for working with servers and is quite different from daily used Operation Systems (for example` Windows 10).<\/p>\n<p><strong>Web server<\/strong> &#8211; Web Servers gets requests from client tool, develops them and sends an response.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Apache vs Nginx<\/strong><\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-441 aligncenter\" src=\"http:\/\/www.tco-team.com\/blog\/wp-content\/uploads\/2018\/02\/apache-nginx-750x393.png\" alt=\"\" width=\"750\" height=\"393\" srcset=\"https:\/\/tco.am\/blog\/wp-content\/uploads\/2018\/02\/apache-nginx-750x393.png 750w, https:\/\/tco.am\/blog\/wp-content\/uploads\/2018\/02\/apache-nginx-150x79.png 150w, https:\/\/tco.am\/blog\/wp-content\/uploads\/2018\/02\/apache-nginx-768x402.png 768w, https:\/\/tco.am\/blog\/wp-content\/uploads\/2018\/02\/apache-nginx.png 852w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/p>\n<p>Apache and Nginx are web servers, let\u2019s consider their differences:<\/p>\n<p>1.Apache consists of two parts: Apache Core and Apache modules. After setting an Apache we can turn on or turn off\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 modules, but it is impossible in Nginx, we should choose them before the setting. Unlike Apache Nginx is working more quickly.<\/p>\n<p>2.These two Web Servers are quite different from each other in cultivating requests. Apache does this due to these 3 modules: mpm-prework, mpm-worker, mpm-event. Nginx is working with forkers and all forkers are working in the cycle asynchrony.<\/p>\n<p>3.Apache has a possibility to make a configuration at the directory level, which does by .htaccess. In this case, every time Apache checks each directory, it checks whether the directory has the .htaccess and configuration. Nginx makes configurations only at the level of root directory. That&#8217;s why it works faster because it does not spend time for extra checking.<\/p>\n<p><strong>HTTP-Hyper Text Transfer Protocol<\/strong> \u2013 Due to this protocol, the server receives information and sends a response. It is default for 80 ports. This is the protocol that is used in order to send and receive information from the server. This is the protocol that the Apache Web Server Understands and it is what it uses to send information back to the client Machine. This is the general back and forth between the server and the browser.<\/p>\n<p><strong>HTTPS- Hyper Text Transfer Protocol Secure <\/strong>\u2013 This is the same HTTP protocol, only it works more secured. It is default for 443 ports. It uses SSL certificate.<\/p>\n<p><strong>SSL \u2013 Secure Sockets Layer<\/strong> &#8211; This is a certificate for transferring information to server. It is a cryptographic protocol and sends the data via cashed variant. SSL has private and public keys and sends and understands that cashed information through this. You can obtain SSL certificate not only from separate companies but also from all hosting companies.<\/p>\n<p><strong>FTP-File Transfer Protocol<\/strong> \u2013 By this protocol you can remotely connect to the server, see all the files and directories, make changes. Works with 21 ports.<\/p>\n<p><strong>SSH-Secure Shell<\/strong> \u2013 This protocol can be remotely connected to the server and work by the terminal. Works with 22 ports. It is a secure communication with server. You need to install SSH on server in order to connect to SSH via server. Also in computer you need to install a SSH server and create public and private keys. It can be done in the terminal by using this command: $ ssh keygen<\/p>\n<p>After that, the generated public key must be installed on the server to confirm the connection. You need to do this command in order to connect the SSH server: $ ssh user$server-ip<\/p>\n<p>After this command, computer will have access to the server files in the terminal or it will require a password that will be accessible to the server in case of filling out correctly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web Servers Architecture and Functionality Server is very similar to our daily used computers. It consists of a mother platinum, processor, operative memory and hard disk. Unlike our computers, however, it is more powerful. The main characteristic of the server is the remote work with many clients. It answers to the all requests coming from [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":443,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[72,37],"tags":[113,118,115,116,114,53,119,117,112],"_links":{"self":[{"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/posts\/437"}],"collection":[{"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/comments?post=437"}],"version-history":[{"count":5,"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":446,"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/posts\/437\/revisions\/446"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/media\/443"}],"wp:attachment":[{"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tco.am\/blog\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}