Conditional re-directs
Does anyone know if it is possible to deploy a 302 re-direct on a Sun One Web Server (version 6.1) which can
a) exclude a certain IP address and
b) re-direct specific files rather than whole directories to external URLs
This is needed to re-direct subscribers to RSS (xml) feeds so I can't put any code in the xml files themselves.
Thanks
[370 byte] By [
ianmorris] at [2007-11-26 11:37:57]

# 1
Yes, this is possible. For example, the following could be added to the obj.conf configuration file to redirect requests for /feed.xml from 192.168.1.0-192.168.1.255:<Object ppath="/feed.xml">
<Client ip="192.168.1.*">
NameTrans fn="redirect" from="/feed.xml" url="http://www.example.com/"
</Client>
</Object>For more information on obj.conf syntax (including <Object> tags and <Client> tags), refer to the NSAPI Programmer's Guide at http://docs.sun.com/app/docs/doc/819-6515/6n8hacbmv?a=view.