[LINUX] Build Squid reverse proxy

Introduction

Here, I would like to introduce an easy way to do a reverse proxy with Squid.

environment

VirtualBox Vagrant Cent0S7 Apache

Here will introduce the construction. Please refer to it.

procedure

First of all, from the composition of roles Assuming that the server has already been built. .. ..

IP port role
192.168.33.10 8080 proxy(squid)
192.168.33.20 80 webserver(httpd)

First of all

$ sudo yum -y install squid

Continued editing (additional)

http_port 192.168.33.10:8080 accel defaultsite=192.168.33.20
cache_peer 192.168.33.20 parent 80 0 no-query originserver
$ systemctl start squid

If you access the proxy server and see the web server page, you are successful.

Summary

How was it? It's a simple operation check level. .. .. Next time, I wish I could introduce the construction with nginx. .. ..

Recommended Posts

Build Squid reverse proxy