SunOne Webserver 6.1SP17, redirecting, pdf requests to coldfusion file
Hi,
I am a coldfusion developer and I have no system administrator experience. However, I need to effectively redirect/rewrite all requests for PDFs to be processed by Coldfusion on a SunOne 6.1. I appreciate that full regular expression rewrites are not available until SunOne 7, but I am convinced obj.conf should be able to do something like this. All I need is that the request for the PDF is processed by a particular Coldfusion file, say getFile.cfm, and it is passed the original requested URL as part of of the header. Do you think that is possible? Could you send me the syntax? Thanks very much. |
Quote:
|
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 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 don't have direct access to the obj.conf, and I need something solid to get the system administrator to do some testing. |
All times are GMT -5. The time now is 11:57 PM. |