Skip to content

Proxy

socks v.s. http

  • connect

the CONNECT method can be used to access websites that use SSL (HTTPS). The client asks an HTTP Proxy server to tunnel the TCP connection to the desired destination.

web server v.s. forward proxy v.s. reverse proxy

forward proxy:

handles requests from and to anywhere on the Internet, also called as tunnel or gateway.

Forward proxies can also be anonymous proxies and allow users to hide their IP address while browsing the Web or using other Internet services.

Note, however, that not all proxy servers support the CONNECT method or limit it to port 443 only.

  • nginx
  • http-node-middleware

reverse proxy:

taking requests from the Internet and forwarding them to servers in an internal network offload the web servers

其实我觉得主要还是一个讲法问题,正向代理代理的对象是客户端,反向代理代理的对象是服务端

Development best practice

Refs

https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling