+ Responder ao Tópico



  1. maninho coloquei seu script e tah executando
    Warning: bad ps syntax, perhaps a bogus '-'? See procps - Frequently Asked Questions (FAQ)
    proxy 1449 12.9 12.9 287892 266084 ? Rl 00:14 0:38 (squid) -D syC
    proxy 1504 0.1 0.0 11280 1692 ? Ss 00:18 0:00 /usr/bin/perl /etc/squid/store_url_orkut
    proxy 1505 0.0 0.0 11280 1684 ? Ss 00:18 0:00 /usr/bin/perl /etc/squid/store_url_orkut
    proxy 1506 0.0 0.0 11280 1684 ? Ss 00:18 0:00 /usr/bin/perl /etc/squid/store_url_orkut
    proxy 1507 0.0 0.0 11280 1680 ? Ss 00:18 0:00 /usr/bin/perl /etc/squid/store_url_orkut
    proxy 1508 0.0 0.0 11280 1616 ? Ss 00:18 0:00 /usr/bin/perl /etc/squid/store_url_orkut
    root 1523 0.0 0.0 4988 768 pts/0 R+ 00:19 0:00 grep squid
    root 25830 0.0 0.0 15992 980 ? Ss Jul08 0:00 squid -D syC


    só nao tah redirecionando

    tem como faze um debug.log pro pra por no tipo echo >> /tmp/debug.log

    ae dentro os parametros:

    entrada: $entrada
    saida: $saida

    soh pra analizar??

    bração!



    image/jpeg
    1215659928.655 16 189.10.203.13 TCP_IMS_HIT/304 306 GET http://img1.orkut.com/images/small/1...7738164/ln.jpg - NONE/- image/jpeg
    1215659928.686 12 189.10.203.13 TCP_IMS_HIT/304 306 GET http://img1.orkut.com/images/small/1...4/37621263.jpg - NONE/- image/jpeg
    1215659928.690 0 189.10.203.13 TCP_IMS_HIT/304 305 GET http://img1.orkut.com/img/castro/p_scrap.gif - NONE/- image/gif
    1215659928.693 14 189.10.203.13 TCP_IMS_HIT/304 306 GET http://img1.orkut.com/images/small/1...5/14654978.jpg - NONE/- image/jpeg
    1215659928.703 0 189.10.203.13 TCP_IMS_HIT/304 305 GET http://www.orkut.com.br/img/smiley/i_bigsmile.gif - NONE/- image/gif
    1215659928.705 33 127.0.0.1 TCP_MISS/200 654 GET http://img3.orkut.com/img/castro/btnbox_r.gif - DIRECT/209.85.193.94 image/gif
    1215659928.705 37 189.10.203.13 TCP_MISS/200 753 GET http://img3.orkut.com/img/castro/btnbox_r.gif - DEFAULT_PARENT/127.0.0.1 image/gif
    1215659928.712 67 127.0.0.1 TCP_MISS/200 2129 GET http://img2.orkut.com/images/small/1...055/966526.jpg - DIRECT/209.85.193.94 image/jpeg
    1215659928.713 70 189.10.203.13 TCP_MISS/200 2228 GET http://img2.orkut.com/images/small/1...055/966526.jpg - DEFAULT_PARENT/127.0.0.1 image/jpeg
    1215659928.747 65 127.0.0.1 TCP_MISS/200 1630 GET http://img4.orkut.com/images/small/1...3454224/ln.jpg - DIRECT/209.85.193.86 image/jpeg
    1215659928.749 68 189.10.203.13 TCP_MISS/200 1729 GET http://img4.orkut.com/images/small/1...3454224/ln.jpg - DEFAULT_PARENT/127.0.0.1 image/jpeg
    1215659928.767 95 127.0.0.1 TCP_MISS/200 2128 GET http://img4.orkut.com/images/small/1...2426756/ln.jpg - DIRECT/209.85.193.85 image/jpeg
    1215659928.769 98 189.10.203.13 TCP_MISS/200 2227 GET http://img4.orkut.com/images/small/1...2426756/ln.jpg - DEFAULT_PARENT/127.0.0.1 image/jpeg

  2. Fiz as modificações no script, tenta aí e posta o resultado do arquivo, por favor.

    Código :
    #!/usr/bin/perl
    $|=1;
    while (<>) {
            open $fh, ">>/tmp/debug_url_redirect.log";
            @X = split;
            $url = $X[0];
            print $fh "entrada: $url\n";
            if ($url =~ /^http:\/\/img[2-9]\.orkut\.com.*/) {
                    $url =~ s/img[0-9]/img1/;
                    print $fh "saida: $url\n";
                    print "302:$url\n";
            } else {
                    print $fh "nao redirecionado\n";
                    print "\n";
            }
            close $fh;
    }



  3. brother tu é o cara!

    wireless:/tmp# tail -f debug_url_redirect.log
    entrada: http://img2.orkut.com/images/small/1...1/24731261.jpg
    saida: http://img1.orkut.com/images/small/1...1/24731261.jpg
    entrada: http://img4.orkut.com/images/small/1...7400500/uf.jpg
    saida: http://img1.orkut.com/images/small/1...7400500/uf.jpg
    entrada: http://img4.orkut.com/images/small/1...7400500/uf.jpg
    saida: http://img1.orkut.com/images/small/1...7400500/uf.jpg
    entrada: http://img4.orkut.com/images/small/1...7282421/ln.jpg
    saida: http://img1.orkut.com/images/small/1...7282421/ln.jpg
    entrada: http://img4.orkut.com/images/small/1...7282421/ln.jpg
    saida: http://img1.orkut.com/images/small/1...7282421/ln.jpg
    entrada: http://img2.orkut.com/images/klein/24/13394724.jpg
    saida: http://img1.orkut.com/images/klein/24/13394724.jpg
    entrada: http://img2.orkut.com/images/klein/24/13394724.jpg
    saida: http://img1.orkut.com/images/klein/24/13394724.jpg
    entrada: http://img4.orkut.com/images/klein/1...0/14561600.jpg
    saida: http://img1.orkut.com/images/klein/1...0/14561600.jpg
    entrada: http://img4.orkut.com/images/klein/1...0/14561600.jpg
    saida: http://img1.orkut.com/images/klein/1...0/14561600.jpg
    entrada: http://img2.orkut.com/images/klein/1...798/543458.jpg
    saida: http://img1.orkut.com/images/klein/1...798/543458.jpg
    entrada: http://img2.orkut.com/images/klein/1...798/543458.jpg
    saida: http://img1.orkut.com/images/klein/1...798/543458.jpg
    entrada: http://img4.orkut.com/images/milieu/...pg?sig=1ixa5rs
    saida: http://img1.orkut.com/images/milieu/...pg?sig=1ixa5rs


    só não sei oq tah avendo pq nos log ele nao redireciona sca soh

    215695635.650 73 189.10.203.20 TCP_MISS/200 3239 GET http://img3.orkut.com/images/chhota/...tid=1215637511 - DEFAULT_PARENT/127.0.0.1 image/jpeg
    1215695635.661 70 127.0.0.1 TCP_MISS/200 2485 GET http://img3.orkut.com/images/chhota/...tid=1215633147 - DIRECT/209.85.193.94 image/jpeg
    1215695635.662 73 189.10.203.20 TCP_MISS/200 2584 GET http://img3.orkut.com/images/chhota/...tid=1215633147 - DEFAULT_PARENT/127.0.0.1 image/jpeg
    1215695635.876 33 127.0.0.1 TCP_MISS/200 2392 GET http://img3.orkut.com/images/chhota/...tid=1215632711 - DIRECT/209.85.193.94 image/jpeg
    1215695635.878 79 189.10.203.20 TCP_MISS/200 2491 GET http://img3.orkut.com/images/chhota/...tid=1215632711 - DEFAULT_PARENT/127.0.0.1 image/jpeg
    1215695636.100 32 127.0.0.1 TCP_MISS/200 2543 GET http://img3.orkut.com/images/chhota/...tid=1215632577 - DIRECT/209.85.193.94 image/jpeg
    1215695636.101 82 189.10.203.20 TCP_MISS/200 2642 GET http://img3.orkut.com/images/chhota/...tid=1215632577 - DEFAULT_PARENT/127.0.0.1 image/jpeg
    1215695637.193 366 127.0.0.1 TCP_MISS/200 21124 GET http://www.orkut.com.br/AlbumZoom.as...=1214919946894 - DIRECT/209.85.193.85 text/html
    1215695637.221 32 127.0.0.1 TCP_MISS/200 2530 GET http://img3.orkut.com/images/small/1...5/71612430.jpg - DIRECT/209.85.193.94 image/jpeg
    1215695637.223 35 189.10.203.20 TCP_MISS/200 2629 GET http://img3.orkut.com/
    1215695746.293 129 127.0.0.1 TCP_MISS/200 2832 GET http://img4.orkut.com/images/klein/1202699362/55713.jpg - DIRECT/209.85.193.86 image/jpeg
    1215695746.295 131 189.10.203.20 TCP_MISS/200 2931 GET http://img4.orkut.com/images/klein/1202699362/55713.jpg - DEFAULT_PARENT/127.0.0.1 image/jpeg
    1215695747.470 64 127.0.0.1 TCP_MISS/200 2011 GET http://img2.orkut.com/images/klein/52/12116652.jpg - DIRECT/209.85.193.94 image/jpeg
    1215695747.471 77 189.10.203.20 TCP_MISS/200 2110 GET http://img2.orkut.com/images/klein/52/12116652.jpg


    olha como fiz

    acl store_rewrite_list dstdomain img2.orkut.com img3.orkut.com img4.orkut.com img5.orkut.com img6.orkut.com img7.orkut.com img8.orkut.com img9.orkut.com

    storeurl_access allow store_rewrite_list
    storeurl_access deny all
    storeurl_rewrite_program /etc/squid/store_url_orkut2

  4. brother qual a moral desse 302 aqui do seu código?!

    print "302:$url\n";


    ? abraços



  5. Esse 302 é o código HTTP para página redirecionada.

    Você já tentou entrar com a url da imagem direto no browser?






Tópicos Similares

  1. Squid. Msg de erro apó o STOP
    Por no fórum Servidores de Rede
    Respostas: 2
    Último Post: 25-08-2003, 13:42
  2. Squid - limite de usuarios (authenticate_children 32)
    Por Wal no fórum Servidores de Rede
    Respostas: 2
    Último Post: 01-08-2003, 17:32
  3. Usar Squid atraves de outro Proxy
    Por lucianotome no fórum Servidores de Rede
    Respostas: 4
    Último Post: 20-05-2003, 10:24
  4. Firewall + Squid ==> Estao de Ficando meio Maluco.
    Por A-Marcio no fórum Servidores de Rede
    Respostas: 0
    Último Post: 28-03-2003, 20:43
  5. Socorro - Squid parou de autenticar após atualização de paco
    Por Ganymede no fórum Servidores de Rede
    Respostas: 3
    Último Post: 17-02-2003, 13:17

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L