Italiano English
Modifica History Actions

Differenze per "NinuxDay2009Documentation"

Differenze tra le versioni 2 e 10 (in 8 versioni)
Versione 2 del 2009-11-27 16:15:58
Dimensione: 670
Autore: ZioPRoTo
Commento:
Versione 10 del 2016-01-30 16:03:43
Dimensione: 84
Autore: 188
Commento: ixVLQX http://www.FyLitCl7Pf7kjQdDUOLQOuaxTXbj5iNG.com
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 1: Linea 1:
= Documentation =

== Squid URL Rewrite ==

We are trying to use this {{{/usr/bin/redirect.py}}} as {{{url_rewrite_program}}} in SQUID 2.6

{{{
#!/usr/bin/python
import sys
while True:
        line = sys.stdin.readline().strip()
        list = line.split(' ')
        url = list[0]
        if (url.find("google") != -1 and url.find("q=") == -1):

                sys.stdout.write("301:http://10.10.0.1/")
                sys.stdout.flush()
        else:
                sys.stdout.write(url+"\n")
                sys.stdout.flush()

}}}

but is not working :( any python guru ?? Contact Raffaele

== Bluetooth Totem ==

visit BlueToothTotem
ixVLQX http://www.FyLitCl7Pf7kjQdDUOLQOuaxTXbj5iNG.com
----
CategoryEnglishPages