About Android calling nanohttpd class to access html in LAN

Want to record the problems encountered in the work, just learned to call the nanohttpd class, concise and clear. Attach the download address of nanohttpd package https://github.com/NanoHttpd/nanohttpd First of all, this paper introduces the use of nanohttpd here. You can build a lightweight Web server through this class. To realize the functio ...

Posted by sfullman on Mon, 06 Jan 2020 19:47:05 -0800

Nginx reverse proxy and cache usage

Bowen structureReverse Proxyproxy cache nginx optimization Reverse proxy (case) 1. Reverse Proxy means that a proxy server accepts a client's connection request, then forwards the request to the web server on the network (possibly apache, nginx, tomcat, iis, etc.), and returns the result from the web server to the client requesting the conne ...

Posted by anauj0101 on Wed, 01 Jan 2020 01:03:43 -0800

Simple implementation of long polling based on HTTP

The common communication mode between Web client and server based on Ajax (http) is divided into short connection and long polling. Short connection: every time the client and the server perform HTTP operation, they establish a connection, and the connection will be interrupted when the task ends. In the long polling mechanism, the client reque ...

Posted by rubenc on Mon, 30 Dec 2019 21:47:05 -0800

Django Learning Notes 1 - Installation Configuration

Django is an open source Web application framework written in Python. There are many web frameworks in python, such as Django, Tornado, Flask. Django has many advantages over other WEB frameworks: large and complete, the framework itself integrates many functions such as ORM, model binding, template engine, caching, Session, etc. Django uses t ...

Posted by warstormer on Sun, 29 Dec 2019 23:00:59 -0800

Three ways to implement 404 pages in Nginx

A website project can't avoid 404 pages. When using Nginx as a Web server, there are the following centralized configurations: First: Nginx's own error page Nginx accesses a static html page. When the page does not exist, nginx throws 404, so how to return it to the client 404? Look at the following configuration. In this ca ...

Posted by pentinat on Sat, 28 Dec 2019 13:23:23 -0800

The basic implementation of express middleware system

I always think that express middleware system is very vivid in this kind of flow processing, just like the processing pipeline, each link is completing its own work for different parts of the same product, and finally gets a finished product. Today, we will implement a simple [middleware queue]. I. API level Initialization method let middlew ...

Posted by Gamerz on Sat, 28 Dec 2019 10:42:11 -0800

Squid Sarg log, ACL access control, reverse proxy

Experimental environment squid server ens33:192.168.13.184 ens36:192.168.10.1 (host mode only) web server 192.168.13.151 client 192.168.10.10 (host mode only) I. ACL access control 1. Modify the configuration file on the squid server [root@squid ~]# vim /etc/squid.conf ##Modify profile # should be allo ...

Posted by madsporkmurderer on Tue, 17 Dec 2019 07:29:40 -0800

squidACL access control, reverse agent, sarg log

Experimental environment squid server ens33:192.168.13.184 ens36:192.168.10.1 (host mode only) web server 192.168.13.151 client 192.168.10.10 (host mode only) I. ACL access control 1. Modify the configuration file on the squid server [root@squid ~]# vim /etc/squid.conf ##Modify profile # should be allo ...

Posted by ryan.od on Tue, 17 Dec 2019 06:51:22 -0800

Three installation methods of nginx

Nginx is a lightweight web server, reverse proxy server. Compared with Apache and lighttpd, it has the advantages of less memory and higher stability. Its most common use is to provide reverse proxy services. 1. Installation package compilation and installation 2.yum source installation 3. Use docker to install You need to confi ...

Posted by jennifer_ann on Sun, 15 Dec 2019 08:08:14 -0800

Squid proxy server -- ACL access control, sarg log, reverse proxy

Experimental environment squid server ens33:192.168.13.184 ens36:192.168.10.1 (host mode only) web server 192.168.13.151 client 192.168.10.10 (host mode only) I. ACL access control 1. Modify the configuration file on the squid server [root@squid ~]# vim /etc/squid.conf ##Modify profile # should be allo ...

Posted by MDanz on Thu, 12 Dec 2019 08:29:21 -0800