Coldfusion files outside of webroot

Greetings, I haven't used CF in awhile so it's almost like starting over again.  I have the following configuration ColdFusion Version 8 on a Windows platform (development) running IIS vs 5.1.
I placed my application files in a folder outside Inetpub, created the mapping in the CF administrator but for some reason it couldn't "find" the folder/files.  So I added a virtual directory in IIS pointing to it but I still have no luck with getting CF to find my application.
My "default.cfm" file is in /Inetpub/wwwroot/ and it makes calls to all the other files located in /MyAppFolder/SubFolders/
What I get is an HTTP 500 Internal Server Error.....annoying really but I've tried everything I can think of to get it to work.  I don't remember it being a problem when I used CF previously.
Any ideas would be greatly appreciated......

I had/have Robust Exception Handling Enabled but still do not get any info from CF on where or what the problem is.
To answer the other questions by GArlington....
<quote>
My "default.cfm" file is in /Inetpub/wwwroot/ and it makes calls to all the other files located in /MyAppFolder/SubFolders/
</quote>
Is the second dir CF's root?   No, the second directory is not in the CF root, the CF root is under Inetpub
How did you map it in CF?  I am not sure what you are asking, I used the CF administrator, went to "mappings" under server settings, gave it the "logical" name and then pointed it to the directory.  It's pretty straight forward and didn't allow for much in the way of "optional" settings.
How do you call it from your default.cfm?  The default.cfm file sitting in wwwroot has an included file that is used for the "menu" (i.e. navigation).  That included file resides in the app folder that is outside Inetpub.  The problem comes when I select one of the menu items from that "included" file.
I guess this is why I am confused, CF seems to "see" the file if it's included, but to make a call directly to it via href does not appear to work.  Maybe I'll try CFlocation.....
Thanks for the answers provided!

Similar Messages

  • Access files outside of web root?

    Hello, everyone.
    Hypothetical scenario.
    Say I wanted to have a file that would set globally accessible variables for containing passwords, and I want to place said file outside of web root, so users cannot access it.
    Logical paths obviously won't work.  And the cfinclude tag doesn't use physical paths.
    I've never done this, before.  What are my options?
    Thank you,
    ^_^

    Almost all your CFML files should not be in a web-browseable directory!  Only the ones people actually browse to should be web accessible.
    Files do not need to be web accessible to be <cfinclude>-ed or be instantiated as objects, or used as a custom tag.
    EG:
    C:\webapps\myapp <= this dir is the root as far as ColdFusion is concerned
    C:\webapps\myapp\wwwroot <= that dir is the webroot as far as the web server goes
    C:\webapps\myapp\includes <= files you <cfinclude>
    C:\webapps\myapp\api <= CFCs
    The only stuff that should be in that wwwroot dir is files people actually browse to (index.cfm, etc), and asset files like images, JS and CSS which need to be served to the browser.
    The bulk of your CFM files should be in a subdir of C:\webapps\myapp.
    So index.cfm needs to be browseable, and it needs to use the data in secretSecureStuff.cfm which is in the includes dir.  So index.cfm just has:
    include "/myapp/includes/secretSecureStuff.cfm";
    If the file to be included isn't in the myapp subdir structure for whatever reason, then you can create a mapping in CFAdmin or Application.cfc to point to it, eg:
    /external => C:\stuff\somewhere\else
    And you'd reference C:\stuff\somewhere\else\outside.cfm via:
    include "/external/outside.cfm";
    Adam

  • Using files outside wwwroot

    Hello Everyone!
    At home, all my files are installed on a Network Attached
    Storage device. I don't have a server. I have de CF administrator
    installed locally on 2 computer. I was wondering if it is possible
    to use my files on my NAS withouth having to move them to the
    wwwroot of my local coldfusion folder. I'd rather not have to
    transfer all my files back and forth whenever i need them...
    Thanks for any help!

    If you have IIS installed, i think there is a mapping feature
    to map directory on network or server as an application. I've setup
    that way also.
    If you have iis, look into Application and Application Pool.
    IIS7 made supereasy to setup applications.
    The other solution is through CF Admin, you can setup Mapping
    there also. I'm assuming that it would execute .cfm files outside
    of root, but you can give it a try.
    Syed

  • How to access a class file outside the package?

    created a two java files Counter.java and TestCounter.java as shown below:
    public class Counter
         public void print()
              System.out.println("counter");
    package foo;
    public class TestCounter
         public static void main(String args[])
              Counter c = new Counter();
              c.print();
    Both these files are stored under "D:\Test". I first compiled Counter.java and got Counter.class which resides in folder "D:\Test"
    when i compile TestCounter.java i got the following error message:
    D:\Test>javac -classpath "d:\Test" -d "d:\Test" TestCounter.java
    TestCounter.java:6: cannot find symbol
    symbol : class Counter
    location: class foo.TestCounter
    Counter c = new Counter();
    ^
    TestCounter.java:6: cannot find symbol
    symbol : class Counter
    location: class foo.TestCounter
    Counter c = new Counter();
    ^
    2 errors
    what could be the problem. Is it possible to access a class file outside the package?

    ya that's fine..if we have two java files where both resides in the same package works fine or two java files which donot have a package statement also works fine. But my doubt is, i have a Counter.class which does not reside in a package and i have a TestCounter.class which resides in a package "foo", in such a scenario, how do i tell to the compiler that "Counter.class resides in such a path, please look at that and give me TestCounter.class". i cannot use import statement to import Counter.class in TestCounter.java because i donot have a package for Counter.java.

  • Deploying a .war file - outside of Tomcat default webapps?

    I would like to deploy a war file outside of the [tomcat]/webapps directory.
    How can I get tomact to recognize AND unpack a war file in a location other then the default webapps directory?
    I have tried the following;
    altering server.xml -
    added context pointing directly to .war in other directory.
    adding context.xml entry to my war -
    added context.xml to META-INF of my war file, indicating that the docBase should be in outside directory.
    Neither of these created the desired result.
    Any suggestions?

    The following is from tomcat docs
    - http://tomcat.apache.org/tomcat-5.5-doc/config/host.html
    appBase : The Application Base directory for this virtual host. This is the pathname of a directory that may contain web applications to be deployed on this virtual host. You may specify an absolute pathname for this directory, or a pathname that is relative to the $CATALINA_BASE directory. Going by that. try making the change as below in your server.xml
    <Host name="localhost" appBase="your_directory"
           unpackWARs="true" autoDeploy="true"
           xmlValidation="false" xmlNamespaceAware="false" deployXML="true">I am going by what the doc says.
    I havent tried it out myself, so do let us know if that worked.
    cheers,
    ram.

  • I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Help please

    I want to open a domain.site2 file outside the default folder (User/Library/Application Support/iWeb) with iWeb11, but iWeb only opens the domain file in the default folder. If I delete the default domain file, iWeb wants to create a new site. Does anyone have the same problem or know how to fix it?

    In Lion the Finder folder is now invisible.  To make it permanetely visible enter the following in the Terminal applicaiton window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    For opening your domain file in Lion for the first time or to switch between multiple domain files  Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an applicaiton.
    Just launch the applicaiton, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    OT

  • Is it possible to read archive files outside of SAP?

    Hi Experts,
    I would like to read SAP archived data (*.ARCHIVE.ARCHIVING)  with non-SAP application. I already know, that data is automatically compressed (and maybe encrypted?).
    My question: Is there some possibility to read archive files outside of SAP? I suppose that would be needed to do some decompress first.
    Your help is appreciated. Thank you!
    Jan

    Hi Stefan,
    Thanks for your reply. I found some points with your hint. Some summary for others:
    460620 - Migrating archive files:
    "Archived data may have to be migrated. One solution is to perform an SLO service archive migration. You can also perform an archive migration for archive files using the Archive Development Kit (ADK)."
    153433 - Access to archived data from other logical systems
    "For data security reasons, the ADK checks whether an archive file was created in the same system and client where it is to be read. If the client, system or file key do no longer correspond to the meta data that were valid at the time of archiving, you can no longer always access the archive file, particularly for reloading. If only the system ID changes when a new installation due to a system copy is carried out, read accesses are still possible. No solution is provided in the standard system. The access to archive files from other logical systems must be taken into account and carried out in a migration project."
    Unfortunately, I still do not know if it is possible to read archived data outside of SAP.
    Best Regards,
    Jan

  • How to access files outside a .jar file netbeans project

    Hi, i need to access a file outside a built project inside netbeans. Ideally i would like this file next to the .jar file as myapp.properties. If possible i would like it so that when i am compiling and running the project in netbeans the file can be with the class files or something along those likes. Either way it would be nice to have different code for built projects and just running them outside a jar.
    Heres what i got so far
    properties = new Properties();
                InputStream in = this.getClass().getResourceAsStream("applications.properties");
                properties.load(in);
                in.close();this only works if the file is next to the classes. (think thats called the classpath ? )
    Thanks for any replies!!

    Your wrong code:
    properties = new Properties();
    InputStream in
    = this.getClass().getResourceAsStream("applications.properties");
    properties.load(in);
    in.close();A right code:
    // basic assumption 1: applications.properties
    //  is a pure ISO 8859-1 text file
    // basic assumption 2: the file applications.properties
    //  is stored in the same directory where your
    //  jar file is stored
    properties = new Properties();
    try{
      FileInputStream in      // assume current dir
       = new FileInputStream("applications.properties");
      properties.load(in);
      in.close();
    catch (Exception e){
      e.printStackTrace();
    }

  • Accessing files outside the root of the site.

    Hi All
    On my web host space I have access to a directory outside the
    root of the
    website i.e. "private"
    I want to store files there for download after users have
    purchased them.
    I want to put them here to stop people ripping the files off
    by guessing the
    link or useing a website copier.
    What I plan to do is send a link to the user via email, this
    link will then
    go to a download page which records the user has accessed the
    file and then
    have the page automatically download the file.
    I can do this no problem if I have the files in a directory
    under the root
    of the site but how can I link to the files outside the root?
    TIA
    Bren
    Why do I climb mountains? Simple! because they are there
    www.3peakschallenge.co.uk

    Sorry forgot to mention I am using ASP VB
    Cheers
    Bren
    "Bren" <[email protected]> wrote in message
    news:ejgd9n$427$[email protected]..
    > Hi All
    >
    > On my web host space I have access to a directory
    outside the root of the
    > website i.e. "private"
    > I want to store files there for download after users
    have purchased them.
    > I want to put them here to stop people ripping the files
    off by guessing
    > the link or useing a website copier.
    > What I plan to do is send a link to the user via email,
    this link will
    > then go to a download page which records the user has
    accessed the file
    > and then have the page automatically download the file.
    > I can do this no problem if I have the files in a
    directory under the root
    > of the site but how can I link to the files outside the
    root?
    >
    > TIA
    > Bren
    > --
    > Why do I climb mountains? Simple! because they are there
    > www.3peakschallenge.co.uk
    >

  • Packaging files outside of the classpath in the Air Install Badge

    Perhaps I am just missing it, but I notice when you bundle a
    Flex app into an Air container, you don't have an option to package
    assets that are outside of the src classpath? I see that the
    packaging process allows you to navigate to files under the /src
    tree but what about files outside of that structure?
    Suppose I want to distribute assets outside of the swf and
    have then distributed along with the application. Is this native
    functionality or will a commercial installer be a necessity?

    There is an option in the project settings to add additional
    source folders to the project. And if none of the built-in Flex
    Builder features do what you need, you can certainly package other
    assets using the underlying ADT tool (which Flex Builder uses). The
    only thing you can't do is install assets outside the application
    directory or run other installation programs -- although you could
    copy files elsewhere on the first run of an application.

  • Reaching the java file outside the package?

    Hi how can i reach the java(or class) files outside the packge(i mean one top folder)
    For example i have a java file in a folder named tech and i want to reach a java file in the folder named support which is under tech folder is something like that possible if it is how?

    Then tech should also be in a package.
    So it would be..
    package tech;
    import tech.support.*;and
    package tech.support;
    import tech.*;

  • Put the debug point in coldfusion file for line by line debugging

    I need to debug the existing coldfusion project line by line. so i configured coldfusion9 and coldfusionbuilder2. I installed coldfusion9 in inbuilt server mode.
    I have window7 as os. I set the line debugging property via launch Adminstrator.
    Now i am able to see the debug output on browser but not able to put the debug break point in coldfusion file.
    Please provide the necessary steps to put the debug break point in coldfusion file so that i am able to debug line by line.

    You just need to double click in the left hand gutter (on the line number if you are displaying line #'s) at the line for which you want to set a breakpoint.  The breakpoint will appear as a blue dot in the gutter and will appeaer in the "breakpoints" view in the ColdFusion Debug perspective.
    You will also need to set up the server information within CFB2, and point your project to the server for debugging to function.

  • How can I restrict access to cloud storage from Creative Cloud? We don't want our users putting files outside the organization.

    We need to restrict our users from storing files outside the organization. How can we restrict this capability?

    They have Cs6, however I need to have my own copy, and the highest I can go with my system is CS5, maybe even 5.5. I've a small budget, and most copies are being sold for massive amounts because they're like collector items. I've seen the ones actually affordable within my range from sellers that arent trustworthy, or they're updates which I can't use. I had Cs2, but with updates to operating systems they stopped working. Thank you for your kind assistance.

  • ITunes moving files outside of the "music" directory.

    I can't understand why, but whenever I open up iTunes it moves files outside of the "music" directory and into the "iTunes Media" directory.
    The files it decides to move are random and it does not matter if I try to play or edit any of them, it happens as soon as iTunes is opened.
    Any idea why this occurs and how I can prevent it?

    I don't think you guys are understanding what I am asking.
    Since iTunes 9 was released I have had my media "reorganized" and consolidated according to the "organize library" option in iTunes. My music library looked like this:
    ../iTunes/iTunes Media/Music/<artist name>/<album name>/<track>
    What has been happening recently when I launch iTunes is that it starts moving my music to this structure:
    ../iTunes/iTunes Media/<artist name>/<album name>/<track>
    iTunes is moving files automatically outside of my "music" folder into the root "iTunes Media" folder even though I have asked it to keep my folder organized / consolidated and have run "organize library" several times.

  • Loading application files outside CF app root (CF+JBoss)

    I have CF9 installed as an EAR file in JBoss 5.1.0 ($JBOSS_HOME/server/default/deploy/cfusion.ear -- on local disk).  I would like to place the custom application files on a shared file system (e.g. /apps/mycfapp) outside of the path $JBOSS_HOME/server/default/deploy/cfusion.ear/cfusion.war.  With JRun, you could map to a different resource path by modifying cfusion.ear/cfusion.war/WEB-INF/jrun-web.xml.
    Ex:
        <virtual-mapping>
            <resource-path>/*</resource-path>
            <system-path>/apps/mycfapp</system-path>
        </virtual-mapping>
    Is there a way to modify/specify the path to the custom application files with other application servers?  Or is this not possible at all and all of the files must be deployed into the $JBOSS_HOME/server/default/deploy/cfusion.ear/cfusion.war directory?
    Desired behavior: When I access http://www.mydomain.com/cfusion/index.cfm, ColdFusion would load index.cfm from /apps/mycfapp/index.cfm instead of $JBOSS_HOME/server/default/deploy/cfusion.ear/cfusion.war/index.cfm

    I need some help with this as well.
    I think that it is a CF configuration issue and has nothing to do with JBoss.
    My presumptions:
    1.  On a linux box, I "should" be able to make a symlink in the cfusion.war directory that points to a external directory that contains .cfm files.
    2.  CF has a "Server Settings -> Mappings" page that I think "should" allow this to work.
    So far, I can't get either of these 2 techniques to work.
    My particular intallation is on RHEL5, using JBoss 5 and CF9.
    I installed CF9 as an EAR in the JBoss deploy directory.
    For me, that is:  /opt/JBoss/server/default/deploy/cfusion.ear
    If I put a "test.cfm" file in /opt/JBoss/server/default/deploy/cfusion.ear/cfusion.war/rick/test.cfm, it works fine.
    But, I need to place the .cfm files on a shared drive that is outside the cfusion.war directory structure.
    I expected that a symbolic link in the cfusion.war directory that pointed to my shared directory would work, but it does not.
    For example if I replace the "rick" directory with a symlink that points to /cfmfiles, I would expect that to work.
    OR, if that doesn't work then I would expect that I could create a mapping from the CF Administrator that points logical path "/rick" to "/cfmfiles" directory path.  That does not work either.
    So, is there any way to configure CF9 on JBoss that allows me to put the .cfm files somewhere other than the cfusion.ear/cfusion.war directory?
    Thanks,
    Rick

Maybe you are looking for