LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-23-2013, 10:36 AM   #1
id0
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
Question 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.
 
Old 03-24-2013, 12:41 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Originally Posted by id0 View Post
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.
 
Old 03-24-2013, 06:59 AM   #3
id0
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Question

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
redirecting ssl requests with squid? frieza Linux - Networking 2 03-03-2010 05:09 PM
Is Sunone 4.0, Apache 1.3.27 support to Suse 11.1 alokjain Linux - Software 1 04-15-2009 05:57 AM
Redirecting HTTP request to another webserver barunva Linux - Newbie 2 11-02-2008 10:17 PM
Redirecting apache2 http requests to internal ip coopea Linux - Networking 1 09-21-2008 02:59 PM
ColdFusion MX: best solution for periodic file compression/archival? Locura Programming 1 12-02-2004 09:33 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration