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

Virtual Directories & Application

Participant ,
Jan 29, 2010 Jan 29, 2010

Copy link to clipboard

Copied

Hi all,

I am trying to reuse some files throughout few sites by using Virtual Directories.  So I have virtual directories mapped in IIS for the files/folders I need.  These virtual files all use application.xyz variables such as dns and paths.  So when I try to use these files I am getting  "Element xyz is undefined in APPLICATION".  So it looks like the virtual directories are ignoring my application settings.  Is there any way around this?

Thanks

TOPICS
Advanced techniques

Views

517

Translate

Translate

Report

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

correct answers 1 Correct answer

Advisor , Jan 29, 2010 Jan 29, 2010

ColdFusion's server side code is not aware of IIS virtual directories.  If you want /directory/file.cfc to be accessible to server side CF code you will need to add a mapping entry in the CF administrator that tells CF that '/directory' maps to a folder on your file system such as 'C:\myweb\directory'.

http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf3638e6-7ffc.html#WSc3ff6d0ea77859461172e0811cbf364104-7ff9

Votes

Translate

Translate
LEGEND ,
Jan 29, 2010 Jan 29, 2010

Copy link to clipboard

Copied

We use real directories, directly off the webroot, for common use things like images, js, css, etc.  Then we call them with /directory/file

Votes

Translate

Translate

Report

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
Advisor ,
Jan 29, 2010 Jan 29, 2010

Copy link to clipboard

Copied

ColdFusion's server side code is not aware of IIS virtual directories.  If you want /directory/file.cfc to be accessible to server side CF code you will need to add a mapping entry in the CF administrator that tells CF that '/directory' maps to a folder on your file system such as 'C:\myweb\directory'.

http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf3638e6-7ffc.html#WSc3ff6d0ea77859461172e0811cbf364104-7ff9

Votes

Translate

Translate

Report

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 ,
Jan 29, 2010 Jan 29, 2010

Copy link to clipboard

Copied

LATEST

Thanks for the answer.  Another possibility that I found out is to create application.cfc in each folder that has <cfinclude template="/application.cfc"> in it.

Votes

Translate

Translate

Report

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
Documentation