Re: [squid-users] PHP-Problem

2007-09-23 Thread Andreas Meyer
"Alexandre Correa" <[EMAIL PROTECTED]> schrieb:

> Hello,
> 
> 
> configure:2305: error: C compiler cannot create executables
> 
> this message seems that your system hasn´t a fully working compiler !!
> 
> try: yum install gcc
> or
> up2date -d -i -u gcc

none of these are available on a SuSE.
 
> and rebuild squid src-rpm  !

Regards
-- 
   Andreas Meyer
   
Internet-Tel.: 06341620317
Mein öffentlicher GPG-Schlüssel unter:
http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index


Re: [squid-users] PHP-Problem

2007-09-23 Thread Andreas Meyer
Adrian Chadd <[EMAIL PROTECTED]> schrieb:

> Have you tried compiling from just the normal Squid source code?

wow, did that with squid-2.6.STABLE16-20070924.tar.gz and it compiled
without any error and got it running. Great!
# ps aux |grep [s]quid
root  5818  0.0  0.2  3716 1108 ?S08:33   0:00 
/usr/local/squid/sbin/squid -f /etc/squid/squid.conf -sYD
squid 5820  0.0  1.2  6488 4784 ?S08:33   0:00 [squid]
squid 5821  0.0  0.0  1340  260 ?S08:33   0:00 (unlinkd)

Now all I have to do is to adjust my rcsquid startfile.

> If you're having trouble building SUSE RPMs from their SRPMs then
> I suggest you contact their support for help.

;)

Thank you!
-- 
   Andreas Meyer
   
Internet-Tel.: 06341620317
Mein öffentlicher GPG-Schlüssel unter:
http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index


Re: [squid-users] PHP-Problem

2007-09-23 Thread Alexandre Correa
Hello,


configure:2305: error: C compiler cannot create executables

this message seems that your system hasn´t a fully working compiler !!

try: yum install gcc
or
up2date -d -i -u gcc


and rebuild squid src-rpm  !


regards !

See `config.log' for more details.
On 9/24/07, Andreas Meyer <[EMAIL PROTECTED]> wrote:
> "Amos Jeffries" <[EMAIL PROTECTED]> schrieb:
>
> > > What could be the problem with the Squid? If I circumvent the Squid, the
> > > shops
> > > are displayed without adding an "index.php" to the URL.
> > >
> >
> > PLEASE upgrade. There are quite a few serious problems known about
> > versions of squid as old as that one. Not to mention the speed and
> > configurability increases made across the 2.6 versions.
>
> I took a squid-2.6.STABLE5-7.src.rpm and tried to rebuild it but it
> didn't work out:
>
> Thread model: posix
> gcc version 3.3 20030226 (prerelease) (SuSE Linux)
> configure:2231: $? = 0
> configure:2233: gcc -V &5
> gcc: `-V' option must have argument
> configure:2236: $? = 1
> configure:2260: checking for C compiler default output
> configure:2263: gcc -O2 -march=i486 -mcpu=i686 -fPIE -DLDAP_DEPRECATED 
> -fno-strict-aliasing  -pie conftes
> t.c  >&5
> gcc: unrecognized option `-pie'
> cc1: error: unrecognized option `-fPIE'
> configure:2266: $? = 1
> configure: failed program was:
> | #line 2239 "configure"
> | /* confdefs.h.  */
> |
> | #define PACKAGE_NAME "Squid Web Proxy"
> | #define PACKAGE_TARNAME "squid"
> | #define PACKAGE_VERSION "2.6.STABLE5"
> | #define PACKAGE_STRING "Squid Web Proxy 2.6.STABLE5"
> | #define PACKAGE_BUGREPORT "http://www.squid-cache.org/bugs/";
> | #define PACKAGE "squid"
> | #define VERSION "2.6.STABLE5"
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:2305: error: C compiler cannot create executables
> See `config.log' for more details.
>
> Don't know how to continue.
>
> BTW, the problem I mentioned first with the index.php is suddenly
> gone, I don't know what happend. It took me three days of confusion
> and suddenly it's gone.
>
> Regards
> --
>Andreas Meyer
>
> Internet-Tel.: 06341620317
> Mein öffentlicher GPG-Schlüssel unter:
> http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index
>


-- 

Sds.
Alexandre J. Correa
Onda Internet / OPinguim.net
http://www.ondainternet.com.br
http://www.opinguim.net


Re: [squid-users] PHP-Problem

2007-09-23 Thread Adrian Chadd
Have you tried compiling from just the normal Squid source code?

If you're having trouble building SUSE RPMs from their SRPMs then
I suggest you contact their support for help.



Adrian


On Mon, Sep 24, 2007, Andreas Meyer wrote:
> "Amos Jeffries" <[EMAIL PROTECTED]> schrieb:
> 
> > > What could be the problem with the Squid? If I circumvent the Squid, the
> > > shops
> > > are displayed without adding an "index.php" to the URL.
> > >
> > 
> > PLEASE upgrade. There are quite a few serious problems known about
> > versions of squid as old as that one. Not to mention the speed and
> > configurability increases made across the 2.6 versions.
> 
> I took a squid-2.6.STABLE5-7.src.rpm and tried to rebuild it but it
> didn't work out:
> 
> Thread model: posix
> gcc version 3.3 20030226 (prerelease) (SuSE Linux)
> configure:2231: $? = 0
> configure:2233: gcc -V &5
> gcc: `-V' option must have argument
> configure:2236: $? = 1
> configure:2260: checking for C compiler default output
> configure:2263: gcc -O2 -march=i486 -mcpu=i686 -fPIE -DLDAP_DEPRECATED 
> -fno-strict-aliasing  -pie conftes
> t.c  >&5
> gcc: unrecognized option `-pie'
> cc1: error: unrecognized option `-fPIE'
> configure:2266: $? = 1
> configure: failed program was:
> | #line 2239 "configure"
> | /* confdefs.h.  */
> |
> | #define PACKAGE_NAME "Squid Web Proxy"
> | #define PACKAGE_TARNAME "squid"
> | #define PACKAGE_VERSION "2.6.STABLE5"
> | #define PACKAGE_STRING "Squid Web Proxy 2.6.STABLE5"
> | #define PACKAGE_BUGREPORT "http://www.squid-cache.org/bugs/";
> | #define PACKAGE "squid"
> | #define VERSION "2.6.STABLE5"
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:2305: error: C compiler cannot create executables
> See `config.log' for more details.
> 
> Don't know how to continue.
> 
> BTW, the problem I mentioned first with the index.php is suddenly
> gone, I don't know what happend. It took me three days of confusion
> and suddenly it's gone.
> 
> Regards
> -- 
>Andreas Meyer
>
> Internet-Tel.: 06341620317
> Mein ??ffentlicher GPG-Schl??ssel unter:
> http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level bandwidth-capped VPSes available in WA -


Re: [squid-users] PHP-Problem

2007-09-23 Thread Andreas Meyer
"Amos Jeffries" <[EMAIL PROTECTED]> schrieb:

> > What could be the problem with the Squid? If I circumvent the Squid, the
> > shops
> > are displayed without adding an "index.php" to the URL.
> >
> 
> PLEASE upgrade. There are quite a few serious problems known about
> versions of squid as old as that one. Not to mention the speed and
> configurability increases made across the 2.6 versions.

I took a squid-2.6.STABLE5-7.src.rpm and tried to rebuild it but it
didn't work out:

Thread model: posix
gcc version 3.3 20030226 (prerelease) (SuSE Linux)
configure:2231: $? = 0
configure:2233: gcc -V &5
gcc: `-V' option must have argument
configure:2236: $? = 1
configure:2260: checking for C compiler default output
configure:2263: gcc -O2 -march=i486 -mcpu=i686 -fPIE -DLDAP_DEPRECATED 
-fno-strict-aliasing  -pie conftes
t.c  >&5
gcc: unrecognized option `-pie'
cc1: error: unrecognized option `-fPIE'
configure:2266: $? = 1
configure: failed program was:
| #line 2239 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "Squid Web Proxy"
| #define PACKAGE_TARNAME "squid"
| #define PACKAGE_VERSION "2.6.STABLE5"
| #define PACKAGE_STRING "Squid Web Proxy 2.6.STABLE5"
| #define PACKAGE_BUGREPORT "http://www.squid-cache.org/bugs/";
| #define PACKAGE "squid"
| #define VERSION "2.6.STABLE5"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2305: error: C compiler cannot create executables
See `config.log' for more details.

Don't know how to continue.

BTW, the problem I mentioned first with the index.php is suddenly
gone, I don't know what happend. It took me three days of confusion
and suddenly it's gone.

Regards
-- 
   Andreas Meyer
   
Internet-Tel.: 06341620317
Mein öffentlicher GPG-Schlüssel unter:
http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index


Re: [squid-users] PHP-Problem

2007-09-23 Thread Amos Jeffries
> Hello!
>
> I have a Squid 2.5.STABLE1 running on a SuSE8.2. On an Apache/1.3.27
> (Linux/SuSE)
> on the same machine three IP-based virtual hosts with osCOmmerce are
> running fine.
>
> Now I have the problem when I connect with the Squid to one of these
> virtual hosts
> everything is ok and the shop is displayed ok.
> The other two virtual hosts with osCommerce-shops are only displayed when
> I add
> a "index.php" to the URL, otherwise they are offered to be downloaded:
>  application/x-httpd-php
>
> The configurations of the three shops are identical exept of the
> servernames and so
> on of course.
>
> What could be the problem with the Squid? If I circumvent the Squid, the
> shops
> are displayed without adding an "index.php" to the URL.
>

PLEASE upgrade. There are quite a few serious problems known about
versions of squid as old as that one. Not to mention the speed and
configurability increases made across the 2.6 versions.


Amos



Re: [squid-users] Caching downloaded files from dynamic pages

2007-09-23 Thread Amos Jeffries
> I'm working in PC Repair service company. We are of course loading often
> drivers, utilities, updates etc from manufacturer webpages (Acer, Lenovo,
> Fujitsu-Siemens, etc).
>
> Since we are on limited connection and we want to speed up downloads, we
> want to use squid to cache those files. So you need to download each file
> only once. We are building up a server for this so CPU/RAM/DISK won't be a
> problem.
>
> I have had a quick test with Squid and have found it working well.
>
> However, I am having problem with manufacturers, which does not have
> hard-coded http/ftp url, but dynamic pages which are "streaming" file to
> the
> browser.
>
> One problematic is Fujitsu-Siemens.
>
> When I am downloading drivers from Lenovo, they work fine, since they are
> using "normal" urls, for example:
> http://download.boulder.ibm.com/ibmdl/pub/pc/pccbbs/mobiles/1rg807ww.exe
>
> But I am unable to cache downloaded drivers and software from
> Fujitsu-Siemens pages.
>
> For example, when downloading this file:
>
> http://support.fujitsu-siemens.com/Download/ShowDescription.asp?SoftwareGUID
> =50AD6EEC-53F0-4B6E-9C13-53E2CB51D36B&OSID=DD13C337-8EFF-4CFB-A589-72971D7BC
> BCE&Status=True&Component=Flash%20Bios%20for%20AMILO%20Pro%20V8210
>
> It will show up in squid access.log like this:
>
> --
> 1190578174.875   1422 192.168.11.5 TCP_MISS/200 22284 GET
> http://support.fujitsu-siemens.com/Download/ShowDescription.asp? -
> DIRECT/80.70.172.14 text/html
> 1190578176.921765 192.168.11.5 TCP_MISS/302 646 POST
> http://support.fujitsu-siemens.com/Download/Download.asp -
> DIRECT/80.70.172.14 text/html
> 1190578177.093172 192.168.11.5 TCP_MISS/302 1090 GET
> http://support.fujitsu-siemens.com/Download/StreamFileToBrowser.asp? -
> DIRECT/80.70.172.14 text/html
> 1190578184.078   6985 192.168.11.5 TCP_MISS/200 1263991 GET
> http://support.fujitsu-siemens.com/download/FileDownload/fileDownload.aspx?
> - DIRECT/80.70.172.14 application/octet-stream
> --
>
> I cannot figure out how to tell Squid to cache that content. :( Is that
> possible at all?
>
> Happy for assistance,
> Alexander
>

This should help a little. Although if they add a UID to the query string
content still may be fetched directly.

http://wiki.squid-cache.org/ConfigExamples/DynamicContent

Amos



[squid-users] Caching downloaded files from dynamic pages

2007-09-23 Thread Alexander K
I'm working in PC Repair service company. We are of course loading often
drivers, utilities, updates etc from manufacturer webpages (Acer, Lenovo,
Fujitsu-Siemens, etc).

Since we are on limited connection and we want to speed up downloads, we
want to use squid to cache those files. So you need to download each file
only once. We are building up a server for this so CPU/RAM/DISK won't be a
problem.

I have had a quick test with Squid and have found it working well.

However, I am having problem with manufacturers, which does not have
hard-coded http/ftp url, but dynamic pages which are "streaming" file to the
browser.

One problematic is Fujitsu-Siemens.

When I am downloading drivers from Lenovo, they work fine, since they are
using "normal" urls, for example:
http://download.boulder.ibm.com/ibmdl/pub/pc/pccbbs/mobiles/1rg807ww.exe

But I am unable to cache downloaded drivers and software from
Fujitsu-Siemens pages.

For example, when downloading this file:

http://support.fujitsu-siemens.com/Download/ShowDescription.asp?SoftwareGUID
=50AD6EEC-53F0-4B6E-9C13-53E2CB51D36B&OSID=DD13C337-8EFF-4CFB-A589-72971D7BC
BCE&Status=True&Component=Flash%20Bios%20for%20AMILO%20Pro%20V8210

It will show up in squid access.log like this:

--
1190578174.875   1422 192.168.11.5 TCP_MISS/200 22284 GET
http://support.fujitsu-siemens.com/Download/ShowDescription.asp? -
DIRECT/80.70.172.14 text/html
1190578176.921765 192.168.11.5 TCP_MISS/302 646 POST
http://support.fujitsu-siemens.com/Download/Download.asp -
DIRECT/80.70.172.14 text/html
1190578177.093172 192.168.11.5 TCP_MISS/302 1090 GET
http://support.fujitsu-siemens.com/Download/StreamFileToBrowser.asp? -
DIRECT/80.70.172.14 text/html
1190578184.078   6985 192.168.11.5 TCP_MISS/200 1263991 GET
http://support.fujitsu-siemens.com/download/FileDownload/fileDownload.aspx?
- DIRECT/80.70.172.14 application/octet-stream
--

I cannot figure out how to tell Squid to cache that content. :( Is that
possible at all?

Happy for assistance,
Alexander




[squid-users] PHP-Problem

2007-09-23 Thread Andreas Meyer
Hello!

I have a Squid 2.5.STABLE1 running on a SuSE8.2. On an Apache/1.3.27 
(Linux/SuSE)
on the same machine three IP-based virtual hosts with osCOmmerce are running 
fine.

Now I have the problem when I connect with the Squid to one of these virtual 
hosts
everything is ok and the shop is displayed ok.
The other two virtual hosts with osCommerce-shops are only displayed when I add
a "index.php" to the URL, otherwise they are offered to be downloaded:
 application/x-httpd-php

The configurations of the three shops are identical exept of the servernames 
and so
on of course.

What could be the problem with the Squid? If I circumvent the Squid, the shops
are displayed without adding an "index.php" to the URL.

Regards
-- 
   Andreas Meyer
   
Internet-Tel.: 06341620317
Mein öffentlicher GPG-Schlüssel unter:
http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index


[squid-users] Exchange 2003 RPC Over HTTPS

2007-09-23 Thread Shekhar Gupta
I am having following problem with squid acting as reverse proxy for
my OWA and RPC server .

Both OWA and RPC is having the same hostname as of now . I am able
to get it worked with OWA however as shown on wiki for RPC i tried
with option RPC-DATA-IN and OUT , but that din't worked , every time i
change my outlook to new reverse proxy address it will show exchange
as offline .

OWA and RPC hostname : owa-rpc.mydomain.com
Squid is compiled with dns disabled option , all hosts are defind in hosts.conf.
https_port 443  cert=/usr/rprgate/servercrt.pem
key=/usr/rprgate/serverkey.pem defaultsite=owa-rpc.mydomain.com vhost
cache_peer 10.112.51.93 parent 443 0 no-query originserver login=PASS
ssl sslflags=DONT_VERIFY_PEER name=owa-rpc.mydomain.com
extension_methods RPC_IN_DATA RPC_OUT_DATA
acl owaserver dstdomain owa-rpc.mydomain.com
cache_peer_access owa-rpc.mydomain.com allow owaserver
acl OWAip dst 10.112.51.93
http_access allow OWAip
http_access allow all
miss_access allow OWAip
miss_access deny all

Please let me know where i am wrong in this , why my RPC is not
working where as i am able to open OWA site with https://owa-rpc.mydomain.com.

Regards,

Shekhar


Re: [squid-users] Caching Expired Objects

2007-09-23 Thread Solomon Asare
Hi All,
sorry, the refresh_pattern looked like:
refresh_pattern -i
get\_video\?video\_id\=.*youtube\.com  10080   990% 
 reload-into-ims ignore-no-cache
override-expire ignore-private ignore-no-store


Regards,
solomon.


--- Solomon Asare <[EMAIL PROTECTED]> wrote:

> Hi All,
> I have had some success in caching expired objects
> with squid3 as shown below:
> 1190548054.719 SWAPOUT 00 0018
> 55122D5A03E0C43DBA15AFDF9225215B  200-1 
>  
> -1 1190548026 video/flv 1626399/1626399 GET
>
http://74.125.0.25/get_video?video_id=tfYK0yBXS-o&origin=lax-v211.lax.youtube.com
> 
> However I am unable to get a HIT with the same
> refresh_pattern that cached the object in the first
> place. Squid3client reports the object has expired:
> HTTP/1.0 403 Forbidden
> Server: squid/3.0.PRE5
> Mime-Version: 1.0
> Date: Sun, 23 Sep 2007 12:30:39 GMT
> Content-Type: text/html
> Content-Length: 1530
> Expires: Sun, 23 Sep 2007 12:30:39 GMT
> X-Squid-Error: ERR_FORWARDING_DENIED 0
> X-Cache: MISS from testSquid
> Via: 1.0 testSquid (squid/3.0.PRE5)
> Proxy-Connection: close
> 
> Any suggestions?
> 
> Regards,
> solomon.
> 
> 
> 
> 
> --- Henrik Nordstrom <[EMAIL PROTECTED]>
> wrote:
> 
> > On ons, 2007-09-19 at 01:45 -0700, Solomon Asare
> > wrote:
> > > Hi Henrik,
> > > I have tried quite a lot, eg:
> > > refresh_pattern -i \.flv$   10080   990%
> > > 99 reload-into-ims ignore-no-cache
> > > 
> > > It caches only those objects which have not
> > already
> > > expired that is with the right combinations of
> > > Last-Modified or ETag & minimum_expiry_time; as
> > you
> > > explained earlier.
> > > 
> > > Any suggestion on a refresh_pattern to overcome
> > > (Last-Modified or ETag & minimum_expiry_time)
> > > limitation?
> > 
> > Have you tried override-expire?
> > 
> > What do use depends on what the response headers
> > look like.
> > 
> > Regards
> > Henrik
> > 
> 
> 



Re: [squid-users] Caching Expired Objects

2007-09-23 Thread Solomon Asare
Hi All,
I have had some success in caching expired objects
with squid3 as shown below:
1190548054.719 SWAPOUT 00 0018
55122D5A03E0C43DBA15AFDF9225215B  200-1   
-1 1190548026 video/flv 1626399/1626399 GET
http://74.125.0.25/get_video?video_id=tfYK0yBXS-o&origin=lax-v211.lax.youtube.com

However I am unable to get a HIT with the same
refresh_pattern that cached the object in the first
place. Squid3client reports the object has expired:
HTTP/1.0 403 Forbidden
Server: squid/3.0.PRE5
Mime-Version: 1.0
Date: Sun, 23 Sep 2007 12:30:39 GMT
Content-Type: text/html
Content-Length: 1530
Expires: Sun, 23 Sep 2007 12:30:39 GMT
X-Squid-Error: ERR_FORWARDING_DENIED 0
X-Cache: MISS from testSquid
Via: 1.0 testSquid (squid/3.0.PRE5)
Proxy-Connection: close

Any suggestions?

Regards,
solomon.




--- Henrik Nordstrom <[EMAIL PROTECTED]>
wrote:

> On ons, 2007-09-19 at 01:45 -0700, Solomon Asare
> wrote:
> > Hi Henrik,
> > I have tried quite a lot, eg:
> > refresh_pattern -i \.flv$   10080   990%
> > 99 reload-into-ims ignore-no-cache
> > 
> > It caches only those objects which have not
> already
> > expired that is with the right combinations of
> > Last-Modified or ETag & minimum_expiry_time; as
> you
> > explained earlier.
> > 
> > Any suggestion on a refresh_pattern to overcome
> > (Last-Modified or ETag & minimum_expiry_time)
> > limitation?
> 
> Have you tried override-expire?
> 
> What do use depends on what the response headers
> look like.
> 
> Regards
> Henrik
>