This discussion is archived
5 Replies Latest reply: Aug 12, 2013 12:03 AM by https-null RSS

SunOne Webserver 6.1SP17, redirecting, pdf requests to coldfusion file

998889 Newbie
Currently Being Moderated
Hi,

We have a Sun ONE Web Server 6.1.

I need all http requests for PDF files to be redirected to a coldfusion template with the original url (for the PDF) being passed in the query string (or even a form variable). I started trying to construct the code snippet for obj.conf:

<Client uri="*.pdf">
NameTrans fn="set-variable" insert-query="url=<uri>" url="/someFolder/getFile.cfm"
</Client>

Would something like this work? What would the exact syntax be?

The problem is that I am a coldfusion developer, I don't have direct access to the obj.conf, and I need something solid to give to the system administrator to do some testing.

Any help and/or suggestions will be greatly appreciated.

Thank you very much.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points