|
From: <ma...@so...> - 2002-06-30 12:10:10
|
Hi, pals!
When running ./start_icap.py, I got such errors,
--------
[root@demo icap_server]# ./start_icap.py
/usr/lib/python2.2/FCNTL.py:7: DeprecationWarning: the FCNTL module is deprecated; please use fcntl
DeprecationWarning)
Traceback (most recent call last):
File "./start_icap.py", line 12, in ?
import icap_handler
File "./icap_handler.py", line 34, in ?
import icap_services, reqmod , respmod
File "./icap_services.py", line 19, in ?
from reqmod import process_reqmod
File "./reqmod.py", line 31, in ?
from ruleProcessor import getReqModifier
File "/root/icap_server/proxylet/ruleProcessor.py", line 47
from www.hp.com import www.hp.com
^
SyntaxError: invalid syntax
--------
My purpose is as the following, when users visit
"www.yahoo.com", I will display the page "www.hp.com"
at the same time.
Such is the content of rules.xml,
--------
<?xml version="1.0"?>
<rulemodule>
<owner class="access provider">
<name>Yahoo</name>
<id>www.yahoo.com</id>
</owner>
<protocol>http</protocol>
<rule processing-point="4">
<property name="Content-Type" matches="text/html">
<action>www.hp.com</action>
</property>
</rule>
</rulemodule>
--------
After modify the file rules.xml, I have already run the
command "make install" in the directory icap_server/irml.
How to resolve the trouble?
Cheers,
George Erik
|