|
From: Geetha M. <ge...@in...> - 2002-07-01 05:22:32
|
I guess my response to your mail on documentation for rule authoring wold have cleared your doubt here. Please see redirectPl.py in proxylet directory. This proxylet currently redirects to a different port based on acccessed url. Please change it to do the needful regards Geetha ma...@so... wrote: > > 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 > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > icap-server-general mailing list > ica...@li... > https://lists.sourceforge.net/lists/listinfo/icap-server-general |