Total de visualizações de página

segunda-feira, 25 de abril de 2016

Reverse Proxy Server


Reverse Proxy Server
2014/09/03
 
Configure Squid as a reverse proxy server.
[1]Configure Squid.
[root@prox ~]# 
vi /etc/squid/squid.conf
# 54: add ( allow all http access )

http_access allow all 

# And finally deny all other access to this proxy
http_access deny all
# line 63: specify backend Web server

http_port 
80 accel defaultsite=www.server.world
# line 62: uncomment

# number means ⇒ [disk cache size] [number of directories on top level] [number of directories on 2nd level]

cache_dir ufs /var/spool/squid 100 16 256
# add follows to the end

cache_peer www.server.world parent 80 0 no-query originserver
# memory cache size

cache_mem 256 MB
# define hostname

visible_hostname prox.server.world
[root@prox ~]# 
systemctl start squid 

[root@prox ~]# 
systemctl enable squid 
[2]Change settings of DNS or Routers in your LAN if need to listen HTTP access on Squid, then try to access to Squid Reverse Proxy Server from a ClientPC with Web browser like follows.

Nenhum comentário:

Postar um comentário