Differenze tra le versioni 2 e 3
Dimensione: 670
Commento:
|
Dimensione: 838
Commento:
|
Le cancellazioni sono segnalate in questo modo. | Le aggiunte sono segnalate in questo modo. |
Linea 26: | Linea 26: |
PS we also found this one and makes exactly what we did, but ours does not work :( http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/ |
Documentation
Squid URL Rewrite
We are trying to use this /usr/bin/redirect.py as url_rewrite_program in SQUID 2.6
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
PS we also found this one and makes exactly what we did, but ours does not work http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/
Bluetooth Totem
visit BlueToothTotem