So I have two websites… www.mydomain.com and myapp.mydomain.com. The www. site is located in the C:/Inetpub/wwwroot folder. The myapp. site is located in the C:/Inetpub/wwwroot/myapp folder. IIS serves both websites perfectly. (I’m running IIS on Windows Server 2012 R2, btw).
The problem I’m having is that both sites need to access the C:/Inetpub/wwwroot/myCfFiles folder. The www. site, of course, sees the myCfFiles as a subfolder so www.mydomain.com/myCfFiles will let me access my CF files… But the myapp. site cannot see C:/Inetpub/wwwroot/myCfFiles, because it sees C:/Inetpub/wwwroot/myapp as its root, and cannot access up one level to then go down a level into myCfFiles.
So in the myapp. site, I created a symlink by going into the C:/Inetpub/wwwroot/myapp folder and typing:
‘mklink /D myCfFiles C:/Inetpub/wwwroot/myCfFiles’
which created a directory link from C:/Inetpub/wwwroot/myapp/myCfFiles to C:/Inetpub/wwwroot/myCfFiles.
If, in a web-browser, I type myapp.mydomain.com/myCfFiles, IIS will serve up an index.html file if I put one in there. Any file, other than a ColdFusion file, will work fine in there.
When I try to read a ColdFusion file in there, I get a 404-file-not-found error. Clearly, ColdFusion is not following the symlink.
So here’s my question — how do I make ColdFusion 11 follow symlinks?