0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Squidリバースプロキシ構築

Posted at

はじめに

ここではSquidでリバースプロキシをやる簡単なやりかたを紹介したいと思います。

環境

VirtualBox
Vagrant
Cent0S7
Apache

こちらで構築の紹介をさせていただいてます参考にどうぞ

手順

まずは役割の構成から
すでにサーバは構築している前提で。。。

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

まずは

$ sudo yum -y install squid

つづいて編集(追記)

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

プロキシサーバにアクセスしwebサーバのページが見れたら成功です

まとめ

いかがだったでしょうか動作確認レベルのシンプルなものですが。。。次回はnginxでの構築とか紹介できればいいなぁ。。。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?