Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: squid and big-files


  • Subject: Re: lug-bg: squid and big-files
  • From: t.yankov@xxxxxxxxxxxxx (Tosho Yankov)
  • Date: Thu, 31 Oct 2002 15:50:16 +0200



r> A mi doide i oste edna ideq... squid-a da gleda URL-to i ako to e nalihcno w FTP-to ili nqkoq lokalna direktoriq naprawa da go dyrpa ot tam wmesto ot internet.... Mislq che towa nqma da e tolkowa
r> trudno da se naprawi....
za drugite nesta moje nqkoi po-napred s squida da otgvoi no za tova
eto ti reshenieto :
redirect_program /path/to/program
redirect_children 10
redirect_rewrites_host_header on

kato program ti pravi slednoto
vidili che primerno v urlto ima mirc*.exe vmesto da hodi do sveta da
go drypne ot tvoito FTP :
eto ti konkreten primer :
#!/usr/bin/perl
$|=1;
while (<>) {
@X = split;
@user = split(/\./,$X[1]);
chop($user[3]);
chop($user[3]);
if($X[0] =~ /mirc601.exe/i ) {
    s/$X[0]/http:\/\/www.tvoiqhost.com\/mirc601.exe/;
                 }
   print;
 }

I ti klienta dovoeln i agneto cqlo :)
  


-- 
Best regards,
Tosho Yankov 
Support engineer
S&T Bulgaria e.o.o.d. 
Tel.:   (+359 52) 602 510 
        (+359 52) 630 991 
Fax.:   (+359 52) 630 991 
Mobile: (+359 88) 987 720 
mailto:t.yankov@xxxxxxxxxxxxx

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================




 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.