CentOS 6
Sponsored Link

Use mod_proxy #12014/09/15

Enable mod_proxy and configute httpd as a forward proxy.
[1] Configure httpd to enable mod_proxy.
[root@www ~]#
vi /etc/httpd/conf.d/f_proxy.conf
# create new

<IfModule mod_proxy.c>
# forward proxy function ON

   ProxyRequests On
   <Proxy *>
      Order deny,allow
      Deny from all
      Allow from
# set disk cache

<IfModule mod_cache.c>
   <IfModule mod_disk_cache.c>
# cache directory

      CacheRoot /var/cache/httpd
# all URL are cache target

      CacheEnable disk /
[root@www ~]#
vi /etc/httpd/conf/httpd.conf
# line 136: chnage listening port

[root@www ~]#
/etc/rc.d/init.d/httpd restart

Stopping httpd:
[  OK  ]

Starting httpd:
[  OK  ]

Configure your client PC for proxy client and make sure httpd is working as a forward proxy.
Matched Content