Posts

Showing posts with the label www

How To Use HAProxy to Set Up HTTP Load Balancer

Image
HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It is really suited for very high traffic web sites and powers quite a number of the world's most visited ones. Over distributed and distributed by default in cloud platforms. In this case, we use 6 server to setup this environment. 1 server for main web, 4 server for nginx balancer and 1 server for HAProxy. main web server :       192.168.1.10 nginx node-1 :      192.168.1.11 nginx node-2 :      192.168.1.12 nginx node-3 :      192.168.1.13 nginx node-4 :      192.168.1.14 HAProxy :      192.168.1.15 In main web server, put your code of web app that you build. In nginx node 1 - 4 configure proxy pass to protect main web server.  Installing HAProxy use command apt-get to install ...

Difference Between http and https

Image
HTTP (Hypertext Transfer Protocol) HT TP (Hypertext Transfer Protocol) is a protocol used by WWW (World Wide Web). HTTP defines how a message can be formatted and sent from server to client. HTTP also controls what actions to be taken by web servers and web browsers in response to commands in this HTTP protocol. The problem with HTTP is that communication is not fully secure. Information we send to websites such as contact information can be easily retrieved by third parties. For example, it is not advisable to transact on the Internet and banking affairs, as the packets sent using this protocol are not encrypted, so they are considered less secure. A session on HTTP is a sequence of request transactions and a network response by using the HTTP protocol. An HTTP client will start a request. The client will open a Transmission Control Protocol (TCP) connection to a specified port on a host (usually port 80 or 8080) server listening on port 80 will wait for client reques...