Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Win7 x64 + IIS + CF9 - run a .cfm file from browser

Participant ,
Nov 24, 2010 Nov 24, 2010

Is it possible to have everything setup so, as the computer user can dbl-click on a .cfm file from windows eg. index.cfm and have it display correctly in the browser ?

At present, clicking on a .cfm file causes Dreamweaver to load and display it.

Dreamweaver can then go on to display the file in the configured browser.

4.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 24, 2010 Nov 24, 2010

I doubt it, because when you're browsing the file system, you're not making an HTTP request, which is what's required to execute a CFM file (the web server asks CF to process the request).  Think about it: how can the file system possibly know what your domain name is, what your web root is, and stuff like that?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010

OK

So should I be able to use an internet browser to open any .cfm on my computer

eg. right click on file and say "open with internet explorer" ?

Currently when I do, it doesn't work ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 24, 2010 Nov 24, 2010

OK, you're not listening.  Or I'm not articulating myself.

Opening a file FROM THE FILE SYSTEM does not go via the web server, so the web server doesn't pass the request to CF, so it doesn't get processed, returend to the web server, and returned to the browser.

All you're doing is opening the physical file.

You can't do what you want to do.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010

I'm getting closer to the solution I require.

Let me elaborate. I'm using a 3rd party tool which successfully opens this file on my system:

http://127.0.0.1:3000/site/77521/gbh/sg_admin.html

I now want it to open the equivalent .cfm file on my system:

http://127.0.0.1:3000/site/77521/gbh/sg_admin.cfm

...but it's not currently working. If my Coldfusion Server and IIS are configured correctly, should this file open properly in a browser ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010

No you cannot do that as Adam has already said.

To open a cfm page that colntains CFML code it must be processed by the ColdFusion application server.

Opening a HTML file requires no server-side processing that is why it opens.

Ken Ford

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010

Ken, I'm not making myself clear - I want to open those links in my Internet Browser

So if this works in my browser:

http://127.0.0.1/gbh/htdocs/gbh/products.cfm

Can you explain why this doesn't ?

http://127.0.0.1:3000/site/77458/gbh/sg_admin.cfm

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 24, 2010 Nov 24, 2010

Well the first one is sending the request to port 80, whereas the second one is sending it to port 3000.  Is CF listening on port 3000?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010

"Is CF listening on port 3000?"

Would this be in IIS or the CF Administrator ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010

What address do you use to access the ColdFusion Administartor?

Ken Ford

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010

The application I'm using forces me to use port 3000

Is there documentation you can point me to so CF listens to that port ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 24, 2010 Nov 24, 2010

Are you sure? The first URL you cited didn't have port 3000 mentioned.

And I can't see how an app would •force• you to use a specific port, because it's up to the server what port it uses, not he client software. So it makes no sense that the software forces this as is would simply never work.

Which software app is this?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 24, 2010 Nov 24, 2010

Neither. It's in web.xml or something like that. I don't have a PC in front of me to check exactly which file.

But if you haven't specifically set CF up to use that port... where'd the reference to port 3000 in your URL come from? You must've had some reason to specify it? Either that or it just shouldn't be there. What if you browse to that URL on port 80?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 24, 2010 Nov 24, 2010

It might be JRun.xml, now that I think about it. But either way, doesn't sound like it's relevant here.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010

I think that only works if you install CF using the stand=alone server and not on top of IIS.

I don't think there is an easy way to do it, other than reinstalling CF using the stand-alone server option.

Ken Ford

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010

the software I'm using is a plugin for Photoshop called SiteGrinder by medialab

It's a really clever piece of software which converts a .psd into a website. Saves me a ton of time.

Anyway, it uses Photoshop's FILE > AUTOMATE facility, and transfer's control to it's own app. The app then converts my .psd and open's it's own content manager in my browser at the location localhost:3000/etc....

It's fine when I used html, but obviously when I tell it to process a cfm file, things don't work. All it's trying to do is open the same file, at the same URL, but with a .cfm suffix. So I thought there must be a way for Coldfusion Server to adapt to that ?

This is the exact URL the app is trying to open in my browser (and fails)

http://127.0.0.1:3000/site/77458/gbh/sg_admin.cfm

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 24, 2010 Nov 24, 2010
LATEST

Don't want to waste your time any further. I've spoken to the Medialab guys and they've indicated they'll change things around in the next update, so it keeps this 'content manager' part of the process as html, which will allow the problematic URL to work fine.

Many thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources