LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Squid: help! (https://www.linuxquestions.org/questions/linux-general-1/squid-help-4111/)

katana 07-10-2001 04:08 AM

Squid: help!
 
hi all!
silly me again...i've been asked by my lecturer ( again) to install squid as a proxy server in the experimental server (linux redhat)i'm working on....i've compiled and installed it, but i dont quite understand how the thing really works...anyway, my question is:

the server has a non-internet ip ( there's a firewall between it and the internet), but i want to test the cache /proxy server with client..basically, i just wanna test if the installation's successful and if squid is really up and running....how can i do this without changing the ip?And another thing, I've checked the access.log after testing out some commands, but found it totally empty. Is this normal? I've read the documentation in the squid homepage, but i think i need a lil more hint...can somebody gimme a hint or other documentations,maybe?

thanks a lot in advance..you all have been so helpful :)

p/s: i tried this command :

client -h cache1.domain.example -p 3128 http://www.ora.com/

but i got the error message:

client: ERROR: Cannot connect to cache1.domain.example:3128: No such file or directory

??

jharris 07-10-2001 04:23 AM

You can test the proxy just by getting it to retrieve any URL thats valid. So say your proxy is running on webcache.mydomain.net and you have a http server on the same machine then you can make a request to http://webcache.mydomain.net. So long as you don't have any rules about not using the proxy for local IP addresses (as you would want in real life!) then the request will go to the proxy, the proxy will get the page (albeit from the local machine) and then return it.

When I played with Squid a while back just for the sake of it and managed to get it working kind of, but its a meaty bit of kit so it took a fair bit of playing around. I pretty much just used the comments in the config file to get it running. I've heard that the O'Reilly Squid book is good if you can get your hands on the copy.

HTH

Jamie...

marconi8 12-17-2002 05:42 AM

can you help me !
 
i have a problem i cannot to upload file that is greateer than 1MB
i configured all needed options in squid.conf but nothing helps


i have a php script that must upload files into server, all php.ini values is settted correctly
in php.ini max allowed size for uploads and posts is near - 60MB


now i have installed squid with hope that this proxy solves my problem but how i must to configure the squid that it will be workable


thanks

jharris 12-17-2002 07:36 AM

marconi8,

You would have been best of starting new thread as you have asked a new question, instead of tagging it on the end of this one...

It sounds be me like you are trying to use Squid to solve you PHP problem. Does you file upload using PHP work at the moment (without a proxy)?? If not then you want to sort that out, a proxy won't help.

In addition to the maximum uploadable file size and max post size its worth considering how long it takes the script to run, if you allow uploadable files that are 60MB, but you are only allowing you PHP script to run for a maximum of 30 second, then the upload will fail if you connection to the webserver isn't quick enough to upload 2MB a second - if you see what I mean.

cheers

Jamie...


All times are GMT -5. The time now is 03:57 AM.