LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   SunOne Webserver 6.1SP17, redirecting, pdf requests to coldfusion file (https://www.linuxquestions.org/questions/solaris-opensolaris-20/sunone-webserver-6-1sp17-redirecting-pdf-requests-to-coldfusion-file-4175455263/)

id0 03-23-2013 10:36 AM

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.

shivaa 03-24-2013 12:41 AM

Quote:

Originally Posted by id0 (Post 4917176)
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.

Be little more descriptive. What exactly you're looking for and what you want to achive? How it is related to SunOne.

id0 03-24-2013 06:59 AM

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.