March 28, 2024, 03:55:09 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Confuse about squid.conf files  (Read 5663 times)

Offline vlinux1

  • Linux Learner
  • ***
  • Posts: 118
Confuse about squid.conf files
« on: March 27, 2005, 05:01:02 AM »
Hello alll

i installed simple proxy on my linux9 and installed  squid transperent src.rpm. but i want to know if we start simple proxy then its configuration file is in /etc/squid/squid.conf and if we start transperent proxy /usr/local/squid/etc/squid.conf.

i confuse about these files are diffrent or same. if i want to remove transperent proxy then what is the procedure.

please tell me in details.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Confuse about squid.conf files
« Reply #1 on: March 27, 2005, 07:09:17 AM »
there is nothing like transparent proxy just by installing a package having trasparent in its name.

about different location of squid.conf files..

If you install squid from rpm package then mostly (all the time) configuration files goes to /etc/squid/ while if you install from tarball then it goes usually to /usr/local/squid/etc/ !

So now you have to either install squid rpm or delete squid package file so that you can get sure which squid you are running !

I think you are running rpm based !

Offline vlinux1

  • Linux Learner
  • ***
  • Posts: 118
squid confusion
« Reply #2 on: March 27, 2005, 11:42:41 AM »
Hello, Ricky


First thanks for reply. i just configure suid default file and its working with my client after that i configure squid transperent by src rpm. (but not working)
now i want to configure transperent again so what i want to do first  plz tell me step by step procedure. i want to use my proxy as caching server also.


Thanks in Advance

vijay

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Confuse about squid.conf files
« Reply #3 on: March 28, 2005, 05:29:39 PM »
here is what you want .. Squid transparent caching proxy

Offline vlinux1

  • Linux Learner
  • ***
  • Posts: 118
squid
« Reply #4 on: March 28, 2005, 05:46:43 PM »
hello ricky


i seen this procedure but after configuration its not working.

tell me   i am getting this error after configuration

Starting squid: /etc/init.d/squid: line 162:  1197 Aborted                

$SQUID $SQUID_OPTS 2>/dev/null
                                                           [FAILED]


please tell me. i am doing any thing wrong and i want to ask u one thing that where i can configure following option

httpd_accel_host vertual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

i get all three option but 1st one is not avaible in file.(virtualhost)

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Confuse about squid.conf files
« Reply #5 on: March 28, 2005, 06:32:48 PM »
you just remove squid RPM..
The do as I have suggested.. I am sure that will work..

You have to just keep those in squid.conf and nothing else to do anywhere ..

Offline vlinux1

  • Linux Learner
  • ***
  • Posts: 118
Confuse about squid.conf files
« Reply #6 on: March 29, 2005, 04:11:41 AM »
hello  ricky&gaurav


Can i remove /etc/squid/squid.conf file. i just checked rpm
# rpm -qa squid
squid-2.5.STABLE1-2

i got this output. tell me i am still in confusion if i installed src rpm then i dont need to change  (etc/squid/squid.conf) this file.or i want to configure in  /usr/local/squid/etc/squid.conf. please tell me step by step

now i am having both file.

thanks in advance

vijay

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Confuse about squid.conf files
« Reply #7 on: March 29, 2005, 06:33:22 AM »
Hi dear
I think u have missed a entry in /etc/hosts
THIS IS THE PROBLEM
open /etc/hosts filr
make entry like this

192.168.2.190                                          mycomputer

{ where 192.168.2.190 is ur ipaddress & mycomputer is ur computername)
& if u dontknow ur computername....
give this command on the terminal
#hostname


& make the required entry in /etc/hosts file...
The above entry is must...........


Afetr that ur SQUID will work
Gaurav

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Confuse about squid.conf files
« Reply #8 on: March 29, 2005, 06:59:15 AM »
If you want to remove squid rpm then just do..
rpm -e <rpm full name> !

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Confuse about squid.conf files
« Reply #9 on: March 29, 2005, 08:11:14 AM »
Hi dear

By default the configuration file for squid is
/etc/squid/squid.conf......
so u have to configure  /etc/squid/squid.conf......   not the file which is in /usr/local/etc/squid

So U have to make changes only in
/etc/squid/squid.conf


Gaurav

Offline vlinux1

  • Linux Learner
  • ***
  • Posts: 118
Confuse about squid.conf files
« Reply #10 on: March 30, 2005, 06:21:03 PM »
hello ricky&gaurav

 Just tell me  first i configured simple squid and it worked  fine

after that i defined to configure squid transperent  proxy so i installed src rpm after that i made chane in /usr/
local/etc/squid as u told in tutorial but my squid is not working.if the default file is /etc/squid/squid.conf then why want to change in /usr/local/etc/squid/squid.conf. after installing src rpm. please tell me

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Confuse about squid.conf files
« Reply #11 on: April 01, 2005, 10:45:35 AM »
you are getting way confused !

You have installed two squids .. one usig rpm and other using tar.gz ie source.

Now you are using rpm's squid installation as I can know it from your comments..

What you simply do is uninstall (delete) files of usr/local/squid

and edit only /etc/squid/ files !

about non working of rpm .. if it is compiled with linux-netfilter directive then it should work .
(in rpm packages comilation is done by other people who create the package)

Hope you get it !