Tikejhya: Ashish Nepal

Knowledgebase

Category: Proxy

Proxy Balancer

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

How to redirect http request to other server or localhost diff port using proxy balancer.

       
               BalancerMember http://127.0.0.1:8080
       

       ProxyPass / balancer://cluster/
       ProxyPassReverse /  balancer://cluster/

Squid Proxy

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

How to install squid in centos.

yum install squid

#It should do all for you, then add this line into

/etc/squid/squid.conf
visible_hostname

#create a log location.

squid -z /var/log/location

# Now learn something about ACL. and you are all done.

# Squid Monitoring Tool

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

yum install gcc make wget httpd
wget http://downloads.sourceforge.net/project/sarg/sarg/sarg-2.3.2/sarg-2.3.2.tar.gz


./configure error (sarg)

util.c: In function ‘getword_atoll’:
util.c:186: error: ‘LLONG_MAX’ undeclared (first use in this function)
util.c:186: error: (Each undeclared identifier is reported only once
util.c:186: error: for each function it appears in.)
make: *** [util.o] Error 1

CFLAGS="-std=gnu99" ./configure

# How to Monitor squid connection http/https.

Squid Monitoring

cat /var/log/squid/access.log | grep CONNECT | cut -d "/" -f 2 | cut -d " " -f 4 | sort -n | uniq -c | sort -n
cat /var/log/squid/access.log | grep HIT | cut -d "/" -f 4 | sort -n | uniq -c | sort -n

# How to enable ssl in squid.

squid –enable-ssl

Problem:
/usr/bin/ld: cannot find -lssl

Solution:
yum install openssl openssl-devel krb5-devel

Powered by WordPress & Theme by Anders Norén