CentOS 5
Sponsored Link

Configure as a reverse Proxy
2015/01/15
 
This example is for squid 2.6. The way of settings for 2.5 and before is defferent from this example. Be careful.
[1] Configure Squid.
[root@lan ~]#
vi /etc/squid/squid.conf
# line 922: web server's IP

http_port
80 defaultsite=10.0.0.31
# line 1454: add

cache_peer 10.0.0.31 parent 80 0 no-query originserver
# line 637: add ( allow http access )

http_access allow all
[root@lan ~]#
/etc/rc.d/init.d/squid restart

Stopping squid:
[  OK  ]

Starting squid:
[  OK  ]
[2] Change Settings of DNS or router if needed, and access to verify settings.
 
Matched Content
 
Tweet