티스토리 뷰

Debian 6 Proxy Server Configure as a Reverse Proxy


Configure as a Reverse Proxy

  Configure Squid as a Reverse Proxy


1. Configure Squid


root@lan:~# vi /etc/squid3/squid.conf 


# line 1075: specify backend web server's IP address

http_port 80 defaultsite=10.0.0.31 


# line 1821: add

cache_peer 10.0.0.31 parent 80 0 no-query originserver 


# line 789: add ( allow all http access )

http_access allow all 


root@lan:~# /etc/init.d/squid3 restart 

Restarting Squid HTTP Proxy 3.x: squid3 Waiting.....................done.

Creating Squid HTTP Proxy 3.x cache structure ... (warning).

2011/03/13 18:37:53| Creating Swap Directories



2. Change Settings of DNS or router if needed, and access to make sure the settings are enabled.


※ Next manual


저작자 표시 비영리 변경 금지
신고
댓글