Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a squid proxy running fine on windows , but when I introduce the line

url_rewrite_program C:\Python27\python.exe C:\Squid\scripts\1.py

Then squid will fail to start with

System error 1067 has occurred

Anyone had the same issue before , is this option compatible with some specific mode of running squid ?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

That error indicates "The process terminated unexpectedly". I'd imagine that Squid is failing to start properly and choking on your configuration file. If you attempt to start Squid from a command prompt (versus starting the service) you'll get some more verbose output about the error.

If memory serves you will need to specify the url_rewrite_program with the syntax:

url_rewrite_program C:\\Python27\\python.exe C:\\Squid\\scripts\\1.py

This will escape the slashes, which is what I expect Squid is choking on.

share|improve this answer
1  
Alternatively, use forward slashes instead (/). –  longneck Feb 7 '13 at 21:43
    
can you point me to some script examples for url_rewrite_program ? –  bit8bug Feb 9 '13 at 8:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.