Re: Oops! Virtual Directories Server Errors
The System Event log will tell you what's going on with the HTTP 500 error (the internal web server error). The problem likely has something to do with the CF connector - I imagine an ISAPI filter of some sort - JRUN.dll, something like that. It probably can't be located. Post the event when you find it and we can figure it out from there. I've seen a similar issue, try this: Look for web.config in the affected directories. Delet all exept the one in root. (the error comes from settings in the web.config - but instead of fixing that i found that deleting them also fixed it) Mvh Helge Hetland WebSite as Den 5. juni 2012 kl. 15:04 skrev Rick Root rick.r...@gmail.com: So, we have a web site where we use virtual directories to point back to the root folder, allowing us to have multiple web sites and one code base. This morning, I removed IIS6 Mgmt Compatability (because CF 9.0.1 won't let me reconfig any web server connectors)... and I had to also install the ASP.NET feature before it would let me do it... Got everything working, reconfigured stuff, and it's all good, right? Only now, our virtual subdirectories are generating The page cannot be displayed because an internal server error has occurred. And I can't find any logs that tell me WHY. Nothing in coldfusion's Exception or Application log, nothing in the C:\Jrun4\logs\ folder that would indicate a problem, nothing helpful in the wsconfig/X/logs folder either... Anyone have any suggestions? -- *The beatings will continue until morale improves.* ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351471 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
DON'T DELETE WEB.CONFIGS unless you know exactly what you are doing. They may be individually configured for each website - some websites have different configuration and that's where the differences go. I've seen a similar issue, try this: Look for web.config in the affected directories. Delet all exept the one in root. (the error comes from settings in the web.config - but instead of fixing that i found that deleting them also fixed it) Mvh Helge Hetland WebSite as Den 5. juni 2012 kl. 15:04 skrev Rick Root rick.r...@gmail.com: So, we have a web site where we use virtual directories to point back to the root folder, allowing us to have multiple web sites and one code base. This morning, I removed IIS6 Mgmt Compatability (because CF 9.0.1 won't let me reconfig any web server connectors)... and I had to also install the ASP.NET feature before it would let me do it... Got everything working, reconfigured stuff, and it's all good, right? Only now, our virtual subdirectories are generating The page cannot be displayed because an internal server error has occurred. And I can't find any logs that tell me WHY. Nothing in coldfusion's Exception or Application log, nothing in the C:\Jrun4\logs\ folder that would indicate a problem, nothing helpful in the wsconfig/X/logs folder either... Anyone have any suggestions? -- *The beatings will continue until morale improves.* ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351472 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
Ok, good point :-) Rename web.config in affected folders and test then.. I have all sites configured on one connector in our setup, and use no .net functinality. In that scenario it's quite ok to not use separate web.config files for every iis website. Mvh Helge Hetland WebSite as Den 7. juni 2012 kl. 17:19 skrev Matthew Small chestypul...@beachbum.net: DON'T DELETE WEB.CONFIGS unless you know exactly what you are doing. They may be individually configured for each website - some websites have different configuration and that's where the differences go. I've seen a similar issue, try this: Look for web.config in the affected directories. Delet all exept the one in root. (the error comes from settings in the web.config - but instead of fixing that i found that deleting them also fixed it) Mvh Helge Hetland WebSite as Den 5. juni 2012 kl. 15:04 skrev Rick Root rick.r...@gmail.com: So, we have a web site where we use virtual directories to point back to the root folder, allowing us to have multiple web sites and one code base. This morning, I removed IIS6 Mgmt Compatability (because CF 9.0.1 won't let me reconfig any web server connectors)... and I had to also install the ASP.NET feature before it would let me do it... Got everything working, reconfigured stuff, and it's all good, right? Only now, our virtual subdirectories are generating The page cannot be displayed because an internal server error has occurred. And I can't find any logs that tell me WHY. Nothing in coldfusion's Exception or Application log, nothing in the C:\Jrun4\logs\ folder that would indicate a problem, nothing helpful in the wsconfig/X/logs folder either... Anyone have any suggestions? -- *The beatings will continue until morale improves.* ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351496 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
yes its still supported, the web config tool seems to detect whether its installed or not and uses it if it is by default. On Tue, Jun 5, 2012 at 4:39 PM, Dave Watts dwa...@figleaf.com wrote: actually you do Dave, cozz if its installed then CF uses it and not the iis7 native mode connector, if you run the cf 9.0.1 web config tool with the iis6 mode installed it even advises you to remove it, plus all current connectors, then set them up again.. CF 9.0.1 still supports IIS 6, right? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351498 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Oops! Virtual Directories Server Errors
So, we have a web site where we use virtual directories to point back to the root folder, allowing us to have multiple web sites and one code base. This morning, I removed IIS6 Mgmt Compatability (because CF 9.0.1 won't let me reconfig any web server connectors)... and I had to also install the ASP.NET feature before it would let me do it... Got everything working, reconfigured stuff, and it's all good, right? Only now, our virtual subdirectories are generating The page cannot be displayed because an internal server error has occurred. And I can't find any logs that tell me WHY. Nothing in coldfusion's Exception or Application log, nothing in the C:\Jrun4\logs\ folder that would indicate a problem, nothing helpful in the wsconfig/X/logs folder either... Anyone have any suggestions? -- *The beatings will continue until morale improves.* ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351456 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
is this actually a CF issue or does it affect any page ? if you have removed IIS6 compatibility tools then you also need to re-create all the connectors on IIS7 native mode. you can do this with the web config tool. On Tue, Jun 5, 2012 at 2:04 PM, Rick Root rick.r...@gmail.com wrote: So, we have a web site where we use virtual directories to point back to the root folder, allowing us to have multiple web sites and one code base. This morning, I removed IIS6 Mgmt Compatability (because CF 9.0.1 won't let me reconfig any web server connectors)... and I had to also install the ASP.NET feature before it would let me do it... Got everything working, reconfigured stuff, and it's all good, right? Only now, our virtual subdirectories are generating The page cannot be displayed because an internal server error has occurred. And I can't find any logs that tell me WHY. Nothing in coldfusion's Exception or Application log, nothing in the C:\Jrun4\logs\ folder that would indicate a problem, nothing helpful in the wsconfig/X/logs folder either... Anyone have any suggestions? -- *The beatings will continue until morale improves.* ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351457 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
is this actually a CF issue or does it affect any page ? if you have removed IIS6 compatibility tools then you also need to re-create all the connectors on IIS7 native mode. you can do this with the web config tool. So #! - it affects ALL types of files (htm, gif, cfm, etc) #2 - I did recreate all the connectors #3 - regular sites working, those that use their own domain name... virtual directory sites are not. #4 - deleted and recreated a virtual directory for one of my sites using the IIS interface did not help. #5 - virtual directories that point to non-web-root folders seem to be fine. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351458 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
do you have the vDir enabled as an application ? On Tue, Jun 5, 2012 at 2:49 PM, Rick Root rick.r...@gmail.com wrote: is this actually a CF issue or does it affect any page ? if you have removed IIS6 compatibility tools then you also need to re-create all the connectors on IIS7 native mode. you can do this with the web config tool. So #! - it affects ALL types of files (htm, gif, cfm, etc) #2 - I did recreate all the connectors #3 - regular sites working, those that use their own domain name... virtual directory sites are not. #4 - deleted and recreated a virtual directory for one of my sites using the IIS interface did not help. #5 - virtual directories that point to non-web-root folders seem to be fine. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351459 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
do you have the vDir enabled as an application ? I'm not sure what you mean... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351460 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
do you have the vDir enabled as an application ? I'm not sure what you mean... In IIS, virtual directories can be configured as separate IIS applications, with their own application pool, or they can run within the context of the parent application. When you look at the list of directories, each type has a different icon. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351461 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
is it just a plain vDir, or did you convert it to an application. the form looks like a yellow folder, the latter will have a little world icon on the folder. If its an application then it also has an application pool, which can be the cause of issues. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351462 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
is it just a plain vDir, or did you convert it to an application. the form looks like a yellow folder, the latter will have a little world icon on the folder. If its an application then it also has an application pool, which can be the cause of issues. Ah, no they are just plain virtual directories .. 15,000 of them. I'm f'ing stumped here. Sure would be nice if IIS would tell me what the internal server error was. Anyone know any good IIS experts who can provide emergency help? Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351463 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
if you want to send me some RDP login details i'll take a look for you On Tue, Jun 5, 2012 at 3:50 PM, Rick Root rick.r...@gmail.com wrote: is it just a plain vDir, or did you convert it to an application. the form looks like a yellow folder, the latter will have a little world icon on the folder. If its an application then it also has an application pool, which can be the cause of issues. Ah, no they are just plain virtual directories .. 15,000 of them. I'm f'ing stumped here. Sure would be nice if IIS would tell me what the internal server error was. Anyone know any good IIS experts who can provide emergency help? Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351464 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
Another curious issue. IIS is no longer showing any CF error messages ... For example, if I create a file test.cfm and in it I only put cfif .. this would normally generate a coldfusion error page ... But now I just get that same The page cannot be displayed because an internal server error has occurred. I also get the same message if I remove the cferror from my application.cfm.. no CF error output at all. With or without robust error reporting, the server used to at least report a coldfusion error for this kind of thing. Though at least this error gets logged to the application log. Whatever is happening with the virtual directories is not (because it's not a CF error). But IIS is hiding the error details. Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351465 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
Whatever is happening with the virtual directories is not (because it's not a CF error). But IIS is hiding the error details. Can you uninstall the CF connectors and see whether static pages then work? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351466 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
This morning, I removed IIS6 Mgmt Compatability (because CF 9.0.1 won't let me reconfig any web server connectors)... and I had to also install the ASP.NET feature before it would let me do it... You shouldn't have to remove IIS 6 Management Compatibility - it's just not required any more for CF 9.0.1 connectors. There are still cases where you might need IIS 6 Management Compatibility that have nothing to do with CF - managing IIS SMTP comes to mind. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351467 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
actually you do Dave, cozz if its installed then CF uses it and not the iis7 native mode connector, if you run the cf 9.0.1 web config tool with the iis6 mode installed it even advises you to remove it, plus all current connectors, then set them up again.. On Tue, Jun 5, 2012 at 4:17 PM, Dave Watts dwa...@figleaf.com wrote: This morning, I removed IIS6 Mgmt Compatability (because CF 9.0.1 won't let me reconfig any web server connectors)... and I had to also install the ASP.NET feature before it would let me do it... You shouldn't have to remove IIS 6 Management Compatibility - it's just not required any more for CF 9.0.1 connectors. There are still cases where you might need IIS 6 Management Compatibility that have nothing to do with CF - managing IIS SMTP comes to mind. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351468 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
actually you do Dave, cozz if its installed then CF uses it and not the iis7 native mode connector, if you run the cf 9.0.1 web config tool with the iis6 mode installed it even advises you to remove it, plus all current connectors, then set them up again.. CF 9.0.1 still supports IIS 6, right? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351469 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Oops! Virtual Directories Server Errors
I've seen a similar issue, try this: Look for web.config in the affected directories. Delet all exept the one in root. (the error comes from settings in the web.config - but instead of fixing that i found that deleting them also fixed it) Mvh Helge Hetland WebSite as Den 5. juni 2012 kl. 15:04 skrev Rick Root rick.r...@gmail.com: So, we have a web site where we use virtual directories to point back to the root folder, allowing us to have multiple web sites and one code base. This morning, I removed IIS6 Mgmt Compatability (because CF 9.0.1 won't let me reconfig any web server connectors)... and I had to also install the ASP.NET feature before it would let me do it... Got everything working, reconfigured stuff, and it's all good, right? Only now, our virtual subdirectories are generating The page cannot be displayed because an internal server error has occurred. And I can't find any logs that tell me WHY. Nothing in coldfusion's Exception or Application log, nothing in the C:\Jrun4\logs\ folder that would indicate a problem, nothing helpful in the wsconfig/X/logs folder either... Anyone have any suggestions? -- *The beatings will continue until morale improves.* ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351470 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF9 no longer recognizes virtual directories on IIS after install of Apache
Hi - I have an application that has been working fine for over a year and now anything that references Virtual Directories no longer functions. Here are the details: Coldfusion is running on Windows Server 2003 Enterprise. Using IIS6 for the web server on the same box. I have several virtual directories setup that reference files on another server on the same network. What I did to break things... I installed Apache (the latest release) along with PHP - but I set Apache up to listen on a different port (8080). Suddently any part of my code that tries to reference a file that is found through a virtual directory generates the following error: An error occurred when performing a file operation exists on file /serverpdfs/130kPDFs/137485.pdf. The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf;.. Here's the actual code that generated that error: cfset filename = http://www.mybp-graphics.com/serverpdfs/130kPDFs\137485.pdf; then within a table... cfif FileExists(#filename#) tdYes File/td cfelse tdNo file/td /cfif The serverpdfs is the virtual directory inside the website mybp-graphics.com. If I look in IIS the directory is there, I can see all the files in it - it seems to be working fine. I first experienced the problem when we tried to open a PDF for viewing by using CFCONTENT - the same type error occurs. What is especially suspicious is that the exception was was org.apache.commons.cfs.FileSystemException - This error still persists even though I have done the following: 1. Completely de-installed Apache and hid the PHP directory. 2. Re-installed ColdFusion from scratch. Any direction would be greatly appreciated - this error is affecting multiple modules of a website that is used constantly by both our customers and our internal employees. Thanks Curt ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350927 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
did you make any other changes in order to get Apache and IIS working together ? e.g. httpcfg set iplisten -i XXX.XX.XXX.X I can't imagine why that would cause vDir issues, but worth undoing if you did it just to be sure. On Tue, May 1, 2012 at 7:08 PM, Curt Carpenter c...@bp-graphics.com wrote: Hi - I have an application that has been working fine for over a year and now anything that references Virtual Directories no longer functions. Here are the details: Coldfusion is running on Windows Server 2003 Enterprise. Using IIS6 for the web server on the same box. I have several virtual directories setup that reference files on another server on the same network. What I did to break things... I installed Apache (the latest release) along with PHP - but I set Apache up to listen on a different port (8080). Suddently any part of my code that tries to reference a file that is found through a virtual directory generates the following error: An error occurred when performing a file operation exists on file /serverpdfs/130kPDFs/137485.pdf. The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf;.. Here's the actual code that generated that error: cfset filename = http://www.mybp-graphics.com/serverpdfs/130kPDFs\137485.pdf; then within a table... cfif FileExists(#filename#) tdYes File/td cfelse tdNo file/td /cfif The serverpdfs is the virtual directory inside the website mybp-graphics.com. If I look in IIS the directory is there, I can see all the files in it - it seems to be working fine. I first experienced the problem when we tried to open a PDF for viewing by using CFCONTENT - the same type error occurs. What is especially suspicious is that the exception was was org.apache.commons.cfs.FileSystemException - This error still persists even though I have done the following: 1. Completely de-installed Apache and hid the PHP directory. 2. Re-installed ColdFusion from scratch. Any direction would be greatly appreciated - this error is affecting multiple modules of a website that is used constantly by both our customers and our internal employees. Thanks Curt ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350931 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
Russ, I didn't make any other config changes like that - other than to Apache - but I've since completely removed Apache from the system. Thanks Curt did you make any other changes in order to get Apache and IIS working together ? e.g. httpcfg set iplisten -i XXX.XX.XXX.X I can't imagine why that would cause vDir issues, but worth undoing if you did it just to be sure. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350933 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
I have had Apave and IIs and CF all running together without issue,so can;t think of any other cause. If you have removed both CF and apache then that only leaves IIS itself as the cause. So you next step would be to remove and reinstall that. You can backup the IIS metabase so that you do not lose all your sites and then restore the metabase after you reinstall IIS, this is a lot easier with IIS7. On Tue, May 1, 2012 at 8:41 PM, Curt Carpenter c...@bp-graphics.com wrote: Russ, I didn't make any other config changes like that - other than to Apache - but I've since completely removed Apache from the system. Thanks Curt did you make any other changes in order to get Apache and IIS working together ? e.g. httpcfg set iplisten -i XXX.XX.XXX.X I can't imagine why that would cause vDir issues, but worth undoing if you did it just to be sure. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350936 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
I have an application that has been working fine for over a year and now anything that references Virtual Directories no longer functions. Here are the details: Coldfusion is running on Windows Server 2003 Enterprise. Using IIS6 for the web server on the same box. I have several virtual directories setup that reference files on another server on the same network. What I did to break things... I installed Apache (the latest release) along with PHP - but I set Apache up to listen on a different port (8080). Suddently any part of my code that tries to reference a file that is found through a virtual directory generates the following error: An error occurred when performing a file operation exists on file /serverpdfs/130kPDFs/137485.pdf. The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf;.. Here's the actual code that generated that error: cfset filename = http://www.mybp-graphics.com/serverpdfs/130kPDFs\137485.pdf; then within a table... cfif FileExists(#filename#) tdYes File/td cfelse tdNo file/td /cfif The serverpdfs is the virtual directory inside the website mybp-graphics.com. If I look in IIS the directory is there, I can see all the files in it - it seems to be working fine. Have you verified that the URL in question still works? Have you tried fetching that URL using a browser on the same machine as the web server? What is especially suspicious is that the exception was was org.apache.commons.cfs.FileSystemException - This error still persists even though I have done the following: 1. Completely de-installed Apache and hid the PHP directory. 2. Re-installed ColdFusion from scratch. Well, if there's a problem with name resolution or IIS virtual directories on the machine in question, those changes won't make a difference. As for the suspicious exception - there's nothing suspicious about it at all. CF includes quite a bit of code from Apache Java projects. That has nothing to do with the Apache web server except that it's also managed by the nonprofit Apache foundation. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, onl ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350939 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
Dave, Thanks for your thoughts. I am pretty sure that the IIS virtual directories must be the problem. I can go into IIS and browse to the virtual directories and see all of the files in them but IIS does not seem to want to serve them up. I can access the other server directly by setting the file name through the other server name and everything works fine. cfset filename = \\bpsbs/pdfarchive/ #(Int(URL.fn/1)*10)# kPDFs\ #URL.fn# .pdf The problem with changing everything over to this method is that on some pages I also use the embed tag to directly embed the PDF in the page so it shows along with some other text and form buttons, etc. When I use the embed tag with the file name built using a direct reference to the server it does not display. Any thoughts would be greatly appreciated. I am afraid my next option is going to be to re-install the server from a backup from last week. The data is on another drive so I won't lose anything except a lot of down time and hours spent doing it. Thanks Curt I have an application that has been working fine for over a year and now anything that references Virtual Directories no longer functions. Here are the details: Coldfusion is running on Windows Server 2003 Enterprise. Using IIS6 for the web server on the same box. I have several virtual directories setup that reference files on another server on the same network. What I did to break things... I installed Apache (the latest release) along with PHP - but I set Apache up to listen on a different port (8080). Suddently any part of my code that tries to reference a file that is found through a virtual directory generates the following error: An error occurred when performing a file operation exists on file /serverpdfs/130kPDFs/137485.pdf. The cause of this exception was: org.apache.commons.vfs. FileSystemException: Could not determine the type of file http://www. mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf.. Here's the actual code that generated that error: cfset filename = http://www.mybp-graphics. com/serverpdfs/130kPDFs\137485.pdf then within a table... cfif FileExists(#filename#) tdYes File/td cfelse tdNo file/td /cfif The serverpdfs is the virtual directory inside the website mybp-graphics.com. If I look in IIS the directory is there, I can see all the files in it - it seems to be working fine. Have you verified that the URL in question still works? Have you tried fetching that URL using a browser on the same machine as the web server? What is especially suspicious is that the exception was was org. apache.commons.cfs.FileSystemException - This error still persists even though I have done the following: 1. Completely de-installed Apache and hid the PHP directory. 2. Re-installed ColdFusion from scratch. Well, if there's a problem with name resolution or IIS virtual directories on the machine in question, those changes won't make a difference. As for the suspicious exception - there's nothing suspicious about it at all. CF includes quite a bit of code from Apache Java projects. That has nothing to do with the Apache web server except that it's also managed by the nonprofit Apache foundation. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, onl ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350941 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
Dave, Have you checked the permissions on the folder the Virtual Directory points to? Is directory security in IIS on the Virtual Directory set to Enable anonymous access with an account that has Windows permissions on that remote folder, or does each user that connects to your site use NT permissions that grant them access to that remote folder? -Carl Dave, Thanks for your thoughts. I am pretty sure that the IIS virtual directories must be the problem. I can go into IIS and browse to the virtual directories and see all of the files in them but IIS does not seem to want to serve them up. I can access the other server directly by setting the file name through the other server name and everything works fine. cfset filename = \\bpsbs/pdfarchive/ #(Int(URL.fn/1)*10)# kPDFs\ #URL.fn# .pdf The problem with changing everything over to this method is that on some pages I also use the embed tag to directly embed the PDF in the page so it shows along with some other text and form buttons, etc. When I use the embed tag with the file name built using a direct reference to the server it does not display. Any thoughts would be greatly appreciated. I am afraid my next option is going to be to re-install the server from a backup from last week. The data is on another drive so I won't lose anything except a lot of down time and hours spent doing it. Thanks Curt ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350942 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
Whoops. That was supposed to be directed to Curt, not Dave. My bad. -Carl Dave, Have you checked the permissions on the folder the Virtual Directory points to? Is directory security in IIS on the Virtual Directory set to Enable anonymous access with an account that has Windows permissions on that remote folder, or does each user that connects to your site use NT permissions that grant them access to that remote folder? -Carl Dave, Thanks for your thoughts. I am pretty sure that the IIS virtual directories must be the problem. I can go into IIS and browse to the virtual directories and see all of the files in them but IIS does not seem to want to serve them up. I can access the other server directly by setting the file name through the other server name and everything works fine. cfset filename = \\bpsbs/pdfarchive/ #(Int(URL.fn/1)*10)# kPDFs\ #URL.fn# .pdf The problem with changing everything over to this method is that on some pages I also use the embed tag to directly embed the PDF in the page so it shows along with some other text and form buttons, etc. When I use the embed tag with the file name built using a direct reference to the server it does not display. Any thoughts would be greatly appreciated. I am afraid my next option is going to be to re-install the server from a backup from last week. The data is on another drive so I won't lose anything except a lot of down time and hours spent doing it. Thanks Curt ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350943 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
Thanks for your thoughts. I am pretty sure that the IIS virtual directories must be the problem. I can go into IIS and browse to the virtual directories and see all of the files in them but IIS does not seem to want to serve them up. I can access the other server directly by setting the file name through the other server name and everything works fine. Do you have multiple virtual servers on the same machine? If so, maybe traffic is going to the wrong one. Any thoughts would be greatly appreciated. I am afraid my next option is going to be to re-install the server from a backup from last week. The data is on another drive so I won't lose anything except a lot of down time and hours spent doing it. I doubt you'll have to do that - IIS problems are usually pretty easy to fix. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350944 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
also check that the user CF is running under still has access to the network paths. check the coldfusion service and see what user it runs as. now login as as that user and make sure he can access the network paths you point to in the vdirs. Russ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350945 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
If the error says can't determine type then perhaps Apache is missing that setting telling it how to handle pdf's? On May 1, 2012 11:08 AM, Curt Carpenter c...@bp-graphics.com wrote: Hi - I have an application that has been working fine for over a year and now anything that references Virtual Directories no longer functions. Here are the details: Coldfusion is running on Windows Server 2003 Enterprise. Using IIS6 for the web server on the same box. I have several virtual directories setup that reference files on another server on the same network. What I did to break things... I installed Apache (the latest release) along with PHP - but I set Apache up to listen on a different port (8080). Suddently any part of my code that tries to reference a file that is found through a virtual directory generates the following error: An error occurred when performing a file operation exists on file /serverpdfs/130kPDFs/137485.pdf. The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf;.. Here's the actual code that generated that error: cfset filename = http://www.mybp-graphics.com/serverpdfs/130kPDFs\137485.pdf; then within a table... cfif FileExists(#filename#) tdYes File/td cfelse tdNo file/td /cfif The serverpdfs is the virtual directory inside the website mybp-graphics.com. If I look in IIS the directory is there, I can see all the files in it - it seems to be working fine. I first experienced the problem when we tried to open a PDF for viewing by using CFCONTENT - the same type error occurs. What is especially suspicious is that the exception was was org.apache.commons.cfs.FileSystemException - This error still persists even though I have done the following: 1. Completely de-installed Apache and hid the PHP directory. 2. Re-installed ColdFusion from scratch. Any direction would be greatly appreciated - this error is affecting multiple modules of a website that is used constantly by both our customers and our internal employees. Thanks Curt ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350946 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
If you have removed apache you should not see this error message *An error occurred when performing a file operation exists on file /serverpdfs/130kPDFs/137485.pdf. The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf;.. * Which means you must now be getting a different error now. I would be looking at the mime types and see if they are all correctly set up. Normally when one sees the message can't determine file type is a mime issue. But it also might be something to do with PHP, the exception that is being thrown is to do with the VFS or Virtual File System so if you say you removed Apache then I am betting that PHP is screwed up. But as you said you tried with cfcontent I am guessing it might be a mime issue or even a permission issue. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Wed, May 2, 2012 at 4:08 AM, Curt Carpenter c...@bp-graphics.com wrote: Hi - I have an application that has been working fine for over a year and now anything that references Virtual Directories no longer functions. Here are the details: Coldfusion is running on Windows Server 2003 Enterprise. Using IIS6 for the web server on the same box. I have several virtual directories setup that reference files on another server on the same network. What I did to break things... I installed Apache (the latest release) along with PHP - but I set Apache up to listen on a different port (8080). Suddently any part of my code that tries to reference a file that is found through a virtual directory generates the following error: An error occurred when performing a file operation exists on file /serverpdfs/130kPDFs/137485.pdf. The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf;.. Here's the actual code that generated that error: cfset filename = http://www.mybp-graphics.com/serverpdfs/130kPDFs\137485.pdf; then within a table... cfif FileExists(#filename#) tdYes File/td cfelse tdNo file/td /cfif The serverpdfs is the virtual directory inside the website mybp-graphics.com. If I look in IIS the directory is there, I can see all the files in it - it seems to be working fine. I first experienced the problem when we tried to open a PDF for viewing by using CFCONTENT - the same type error occurs. What is especially suspicious is that the exception was was org.apache.commons.cfs.FileSystemException - This error still persists even though I have done the following: 1. Completely de-installed Apache and hid the PHP directory. 2. Re-installed ColdFusion from scratch. Any direction would be greatly appreciated - this error is affecting multiple modules of a website that is used constantly by both our customers and our internal employees. Thanks Curt ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350948 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
If you have removed apache you should not see this error message *An error occurred when performing a file operation exists on file /serverpdfs/130kPDFs/137485.pdf. The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf;.. * Actually, no. Apache Commons VFS is included in CF 9.x. It has nothing to do with Apache HTTPD. It's a Java library, and CF uses it to talk to ... filesystems (big surprise there, I guess!) Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350949 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: RE: Virtual Directories and IIS
With a rewrite rule, if rewriting from /somesite/foo.cfm to /foo.cfm, 'somesite' will *not* appear in your cgi.script_name variable (you will see '/foo.cfm'). You can however pass the value to the request as a url parameter, e.g. /somesite/foo.cfm - /foo.cfm?site=somesite (or some other scheme that you may come up with) HTH Dominic On 6 December 2010 21:43, Rick Root rick.r...@gmail.com wrote: On Mon, Dec 6, 2010 at 3:50 PM, Russ Michaels r...@michaels.me.uk wrote: Well if each site is different and have its own files then you need a unique URL and a folder in which to store the files, so I can't see how you can avoid either a real or a virtual directory. However if every site uses the same codebase, then you could use some url rewriting to allow your code to handle the different sites. Each site uses the same code base, and tt already handles it because I currently use 12,000 virtual directories that point back to the code base in the web root. The code itself gets the site information from the name it finds in the cgi SCRIPT_NAME variable. Here's an example: www.classcreator.com/Saline-MI-1990 I was thinking about using ISAPI Rewrite, as suggested by someone else, but I'm afraid that would actually cause the site name Saline-MI-1990 to be invisible to Coldfusion (would it still be part of the cgi.script_name?) Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339876 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Virtual Directories and IIS
I'm wondering if there's a better way to do what we're doing. Currently, we have about 12,000 web sites, each of which uses a virtual directory that refers to the web root www.mydomain.com/mywebsite1 www.mydomain.com/mywebsite2 etc Some of these sites end up buying domains and they just end up going to www.mywebsite1.com .. but the virtual directory still works. So yeah, we've got 12,000 virtual directories (back in the old days, we actually had 2,000 physical subdirectories with 2,000 identical copies of the files, so the virtual directory method was a vast improvement) that being said, I'm having problems getting my dot net calls to work (a topic for another thread) but this got me thinking.. is there a better way? Could I somehow have a catch-all virtual directory that would prevent me from having to create unique virtual directories for every site? like, in the case www.mydomain.com/mywebsite1/foo.cfm, if there ws no /mywebsite1/ physical directory, then look for foo.cfm in the web root.. but do not REDIRECT (because we rely on /mywebsite1/ being in the URL so we know which site they're accessing) rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339821 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Virtual Directories and IIS
Not sure if this helps, but a simple custom 404.cfm would work. Update the Custom Errors in IIS, create a custom 404.cfm page that looks in a DB for the missing/unfounded URL. For instance you could place in the DB MyWebSite1 will map to www.mydomain.com/mywebsite1, then do a cfLocation in the 404.cfm file to the real URL. We do this with a lot of success. Makes it easy to bring on new clients without having to create those virtual directories. Again, this only works if you have access to IIS/Web Server custom errors. If you need more info, just ask! Brian -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: Monday, December 06, 2010 1:44 PM To: cf-talk Subject: Virtual Directories and IIS I'm wondering if there's a better way to do what we're doing. Currently, we have about 12,000 web sites, each of which uses a virtual directory that refers to the web root www.mydomain.com/mywebsite1 www.mydomain.com/mywebsite2 etc Some of these sites end up buying domains and they just end up going to www.mywebsite1.com .. but the virtual directory still works. So yeah, we've got 12,000 virtual directories (back in the old days, we actually had 2,000 physical subdirectories with 2,000 identical copies of the files, so the virtual directory method was a vast improvement) that being said, I'm having problems getting my dot net calls to work (a topic for another thread) but this got me thinking.. is there a better way? Could I somehow have a catch-all virtual directory that would prevent me from having to create unique virtual directories for every site? like, in the case www.mydomain.com/mywebsite1/foo.cfm, if there ws no /mywebsite1/ physical directory, then look for foo.cfm in the web root.. but do not REDIRECT (because we rely on /mywebsite1/ being in the URL so we know which site they're accessing) rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339823 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Virtual Directories and IIS
Rick, What is the purpose of all these sub directories, is each site actually different? What are you actually trying to achieve. Russ -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: 06 December 2010 18:44 To: cf-talk Subject: Virtual Directories and IIS I'm wondering if there's a better way to do what we're doing. Currently, we have about 12,000 web sites, each of which uses a virtual directory that refers to the web root www.mydomain.com/mywebsite1 www.mydomain.com/mywebsite2 etc Some of these sites end up buying domains and they just end up going to www.mywebsite1.com .. but the virtual directory still works. So yeah, we've got 12,000 virtual directories (back in the old days, we actually had 2,000 physical subdirectories with 2,000 identical copies of the files, so the virtual directory method was a vast improvement) that being said, I'm having problems getting my dot net calls to work (a topic for another thread) but this got me thinking.. is there a better way? Could I somehow have a catch-all virtual directory that would prevent me from having to create unique virtual directories for every site? like, in the case www.mydomain.com/mywebsite1/foo.cfm, if there ws no /mywebsite1/ physical directory, then look for foo.cfm in the web root.. but do not REDIRECT (because we rely on /mywebsite1/ being in the URL so we know which site they're accessing) rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339827 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: RE: Virtual Directories and IIS
Yes, each is managed and customized by different people. On Dec 6, 2010 2:18 PM, Russ Michaels r...@michaels.me.uk wrote: Rick, What is the purpose of all these sub directories, is each site actually different? What are you actually trying to achieve. Russ -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: 06 December 2010 18:44 To: cf-talk Subject: Virtual Directories and IIS I'm wondering if there's a better way to do what we're doing. Currently, we have about 12,000 web s... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339833 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: RE: Virtual Directories and IIS
Simple rewrite rule using a rewrite ISAPI filter. Either the free Ionic one or paid for Helicon: http://www.isapirewrite.com/ http://www.isapirewrite.com/http://iirf.codeplex.com/ http://iirf.codeplex.com/Your rewrite rule might look something like (there will surely be some better regex for your use cases): RewriteRule /(+*?)/(.*)$ /index.cfm?site=$1params=$2 [I,L] or perhaps: RewriteRule ^/(+*?)/(.*)$ /$2/?site=$1 [I,L] (etc) HTH Dominic On 6 December 2010 20:19, Rick Root rick.r...@gmail.com wrote: Yes, each is managed and customized by different people. On Dec 6, 2010 2:18 PM, Russ Michaels r...@michaels.me.uk wrote: Rick, What is the purpose of all these sub directories, is each site actually different? What are you actually trying to achieve. Russ -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: 06 December 2010 18:44 To: cf-talk Subject: Virtual Directories and IIS I'm wondering if there's a better way to do what we're doing. Currently, we have about 12,000 web s... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339836 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: RE: Virtual Directories and IIS
Well if each site is different and have its own files then you need a unique URL and a folder in which to store the files, so I can't see how you can avoid either a real or a virtual directory. However if every site uses the same codebase, then you could use some url rewriting to allow your code to handle the different sites. e.g. www.domain1.com rewrite to www.primarydomain.com/?siteid=site1 www.doamin2.com rewrites to www.primarydomain.com?siteid=site2 URL rewriting is built right into IIS7, otherwise you can use ISAPI_REWRITE Russ -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: 06 December 2010 20:19 To: cf-talk Subject: Re: RE: Virtual Directories and IIS Yes, each is managed and customized by different people. On Dec 6, 2010 2:18 PM, Russ Michaels r...@michaels.me.uk wrote: Rick, What is the purpose of all these sub directories, is each site actually different? What are you actually trying to achieve. Russ -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: 06 December 2010 18:44 To: cf-talk Subject: Virtual Directories and IIS I'm wondering if there's a better way to do what we're doing. Currently, we have about 12,000 web s... ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339839 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: RE: Virtual Directories and IIS
On Mon, Dec 6, 2010 at 3:50 PM, Russ Michaels r...@michaels.me.uk wrote: Well if each site is different and have its own files then you need a unique URL and a folder in which to store the files, so I can't see how you can avoid either a real or a virtual directory. However if every site uses the same codebase, then you could use some url rewriting to allow your code to handle the different sites. Each site uses the same code base, and tt already handles it because I currently use 12,000 virtual directories that point back to the code base in the web root. The code itself gets the site information from the name it finds in the cgi SCRIPT_NAME variable. Here's an example: www.classcreator.com/Saline-MI-1990 I was thinking about using ISAPI Rewrite, as suggested by someone else, but I'm afraid that would actually cause the site name Saline-MI-1990 to be invisible to Coldfusion (would it still be part of the cgi.script_name?) Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339846 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Virtual Directories and IIS
I have done this and it works a treat, which also means I no longer need to run scripts to setup IIS VDirs anymore. I also use SES so it might be a bit different if you aren't doing this. But I always treat the first in the list for example /myvdir/foo.cfm would be myvdir as a virtual directory, then try to look it up against known clients. If it doesn't match then it must be a dir, and continue. All this info is in the url string so it is easy to work out. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: Tuesday, 7 December 2010 5:44 AM To: cf-talk Subject: Virtual Directories and IIS I'm wondering if there's a better way to do what we're doing. Currently, we have about 12,000 web sites, each of which uses a virtual directory that refers to the web root www.mydomain.com/mywebsite1 www.mydomain.com/mywebsite2 etc Some of these sites end up buying domains and they just end up going to www.mywebsite1.com .. but the virtual directory still works. So yeah, we've got 12,000 virtual directories (back in the old days, we actually had 2,000 physical subdirectories with 2,000 identical copies of the files, so the virtual directory method was a vast improvement) that being said, I'm having problems getting my dot net calls to work (a topic for another thread) but this got me thinking.. is there a better way? Could I somehow have a catch-all virtual directory that would prevent me from having to create unique virtual directories for every site? like, in the case www.mydomain.com/mywebsite1/foo.cfm, if there ws no /mywebsite1/ physical directory, then look for foo.cfm in the web root.. but do not REDIRECT (because we rely on /mywebsite1/ being in the URL so we know which site they're accessing) rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339856 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: RE: Virtual Directories and IIS
Rick, If www.classcreator.com/Saline-MI-1990 is what you want CF to see then this is simply what you need to rewrite the URL to. So user requests www.saline-mi.com and gets rewritten to www.classcreator.com/Saline-MI-1990 If the vDir matchs the domain name then it should be fairly easy rules, if the vDir name has nothing to do with the domain name, then you will have to create a new rule for each site. Russ -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: 06 December 2010 21:43 To: cf-talk Subject: Re: RE: Virtual Directories and IIS On Mon, Dec 6, 2010 at 3:50 PM, Russ Michaels r...@michaels.me.uk wrote: Well if each site is different and have its own files then you need a unique URL and a folder in which to store the files, so I can't see how you can avoid either a real or a virtual directory. However if every site uses the same codebase, then you could use some url rewriting to allow your code to handle the different sites. Each site uses the same code base, and tt already handles it because I currently use 12,000 virtual directories that point back to the code base in the web root. The code itself gets the site information from the name it finds in the cgi SCRIPT_NAME variable. Here's an example: www.classcreator.com/Saline-MI-1990 I was thinking about using ISAPI Rewrite, as suggested by someone else, but I'm afraid that would actually cause the site name Saline-MI-1990 to be invisible to Coldfusion (would it still be part of the cgi.script_name?) Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339859 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Virtual Directories and cfinclude
Recently, I've been trying to modularize all code needed for a particular function with a directory that exists outside the root directory of a website. I have some functionality that is common to many websites and need to reference the files on if a site uses said functionality. For instance, I have a real estate website that uses a subdivision function. Not all do, but this one does. I decided to move the subdivision folder outside the root of all the websites that might use it and put it under its own directory in the webroot. I can create a virtual directory in IIS easily enough to reference files within the subdivision folder. However, if I try to reference files within the main websites structure from within the subdivision folder under the webroot using cfinclude, I can't. At least not using relative links, as far as I can tell. I want to keep all content, .cfm's, .cfc's, .css files etc., outside of the main website folder structure so that if that function (subdivisions, in this case) is not used, then none of the files and assets need be part of the website's directory structure and content. Make any sense? In the end, it amounts to wanting to have a way for referencing cfincludes, such as menu structure file, from within the folder structure of the external directory subdivisions as I can reference files from within subdivisions folder by using a virtual directory in IIS. Maybe I'm missing something very obvious. Any feedback would be appreciated. Thanks, Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335469 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Virtual Directories and cfinclude
The virtual directory will take care of the .css and image files, but you'll need to add a mapping for the CFML to work, I think. :Den -- In those days spirits were brave, the stakes were high, men were real men, women were real women and small furry creatures from Alpha Centauri were real small furry creatures from Alpha Centauri. Douglas Adams On Mon, Jul 19, 2010 at 10:26 AM, Rick Faircloth wrote: Recently, I've been trying to modularize all code needed for a particular function with a directory that exists outside the root directory of a website. I have some functionality that is common to many websites and need to reference the files on if a site uses said functionality. For instance, I have a real estate website that uses a subdivision function. Not all do, but this one does. I decided to move the subdivision folder outside the root of all the websites that might use it and put it under its own directory in the webroot. I can create a virtual directory in IIS easily enough to reference files within the subdivision folder. However, if I try to reference files within the main websites structure from within the subdivision folder under the webroot using cfinclude, I can't. At least not using relative links, as far as I can tell. I want to keep all content, .cfm's, .cfc's, .css files etc., outside of the main website folder structure so that if that function (subdivisions, in this case) is not used, then none of the files and assets need be part of the website's directory structure and content. Make any sense? In the end, it amounts to wanting to have a way for referencing cfincludes, such as menu structure file, from within the folder structure of the external directory subdivisions as I can reference files from within subdivisions folder by using a virtual directory in IIS. Maybe I'm missing something very obvious. Any feedback would be appreciated. Thanks, Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335477 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Virtual Directories and cfinclude
Thanks for the insight, Den. Rick -Original Message- From: denstar [mailto:valliants...@gmail.com] Sent: Monday, July 19, 2010 2:20 PM To: cf-talk Subject: Re: Virtual Directories and cfinclude The virtual directory will take care of the .css and image files, but you'll need to add a mapping for the CFML to work, I think. :Den -- In those days spirits were brave, the stakes were high, men were real men, women were real women and small furry creatures from Alpha Centauri were real small furry creatures from Alpha Centauri. Douglas Adams On Mon, Jul 19, 2010 at 10:26 AM, Rick Faircloth wrote: Recently, I've been trying to modularize all code needed for a particular function with a directory that exists outside the root directory of a website. I have some functionality that is common to many websites and need to reference the files on if a site uses said functionality. For instance, I have a real estate website that uses a subdivision function. Not all do, but this one does. I decided to move the subdivision folder outside the root of all the websites that might use it and put it under its own directory in the webroot. I can create a virtual directory in IIS easily enough to reference files within the subdivision folder. However, if I try to reference files within the main websites structure from within the subdivision folder under the webroot using cfinclude, I can't. At least not using relative links, as far as I can tell. I want to keep all content, .cfm's, .cfc's, .css files etc., outside of the main website folder structure so that if that function (subdivisions, in this case) is not used, then none of the files and assets need be part of the website's directory structure and content. Make any sense? In the end, it amounts to wanting to have a way for referencing cfincludes, such as menu structure file, from within the folder structure of the external directory subdivisions as I can reference files from within subdivisions folder by using a virtual directory in IIS. Maybe I'm missing something very obvious. Any feedback would be appreciated. Thanks, Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335487 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
ColdFusion IIS Virtual Directories
What are the IIS Virtual Directories set up for websites using ColdFusion? I know there should be one for CFIDE, but isn't there a second one as well? TIA ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311667 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: ColdFusion IIS Virtual Directories
I have never set up anything but the CFIDE virtual directory. Chuck -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 2:08 PM To: CF-Talk Subject: ColdFusion IIS Virtual Directories What are the IIS Virtual Directories set up for websites using ColdFusion? I know there should be one for CFIDE, but isn't there a second one as well? TIA ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311668 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: ColdFusion IIS Virtual Directories
What are the IIS Virtual Directories set up for websites using ColdFusion? I know there should be one for CFIDE, but isn't there a second one as well? Yes, maybe. By default, the web server configuration utility creates a virtual directory in IIS 5 called /JrunScripts, and it points to the specific wsconfig subdirectory for your web server connector (\wsconfig\1 if it's the first web server connector you've set up). If I recall correctly, this is used by things that invoke the JRun ISAPI filter, rather than the ISAPI extension. I think that would include things like Flash Remoting and CFCHART. In IIS 6, I don't think this is needed (or created), as CF installs an ISAPI wildcard extension instead of a filter. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311670 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Creationg virtual directories with CF and dotNet
Okay so I'm trying to use the System.DirectoryEntry assembly to create some virtual directories in IIS and not having much luck. Essentially I'm not getting past step 1: cfobject type=.net class=DirectoryEntry assembly=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.DirectoryServices.dll name=site This is the error I get: Class DirectoryEntry not found in the specified assembly list. The assembly that contains the class must be provided to the assembly attribute. Here's the documentation for the DirectoryEntry class in the .NET framework 1.1: http://tinyurl.com/6ljdcd It's supposed to be there! Anyone got any ideas how to get me past line 1 of my code? =) -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the scenes video at www.myspace.com/brianvanderark ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307509 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Creationg virtual directories with CF and dotNet
scratch that, I figured out that i need to use the full clas path... cfobject type=.net class=System.DirectoryServices.DirectoryEntry assembly=C:\WINDOWS\Microsoft ..NET\Framework\v1.1.4322\System.DirectoryServices.dll name=site Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307511 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Creationg virtual directories with CF and dotNet
If anyone's interested, I've got this working, and blogged about it here: http://www.opensourcecf.com/1/2008/06/Creating-IIS-Virtual-Directories-with-Coldfusion-8-and-NET-integr.cfm ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307514 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Creationg virtual directories with CF and dotNet
just stumbled upon this: http://tuttletree.com/nerdblog/?page_id=85 thought you may be interested... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Rick Root wrote: If anyone's interested, I've got this working, and blogged about it here: http://www.opensourcecf.com/1/2008/06/Creating-IIS-Virtual-Directories-with-Coldfusion-8-and-NET-integr.cfm ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307521 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Creationg virtual directories with CF and dotNet
Cool, that'd be useful for CF versions prior to CF8 without .NET integration. Thanks for the link! Rick On Sun, Jun 15, 2008 at 3:34 PM, Azadi Saryev [EMAIL PROTECTED] wrote: just stumbled upon this: http://tuttletree.com/nerdblog/?page_id=85 thought you may be interested... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Rick Root wrote: If anyone's interested, I've got this working, and blogged about it here: http://www.opensourcecf.com/1/2008/06/Creating-IIS-Virtual-Directories-with-Coldfusion-8-and-NET-integr.cfm ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307524 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: IIS Virtual DIrectories and Shared Scope Vars
That was it - there was a default mapping i overlooked on that machine to \ - removing it fixed the problem. Sometimes you can stare at things too long! 1 : 2 : cfinclude template=/application.cfm 3 : For my life, I cannot figure out why. On the server that DOES work, we have no special CUSTOM TAG PATHS, no MAPPINGS,.and it works joyfully - its only on this new server. I'm fairly certain you're wrong about that. Any time you use a slash as the first character within the path for CFINCLUDE or CFMODULE, the path is always resolved via a mapping. I strongly suspect that you have at least one mapping; the one that comes with a default install of CF, and is mapped to wherever you specified as your web root during the install. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! This email has been processed by SmoothZap - www.smoothwall.net ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277680 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: IIS Virtual DIrectories and Shared Scope Vars
So true... On 5/11/07, Ben Shichman [EMAIL PROTECTED] wrote: That was it - there was a default mapping i overlooked on that machine to \ - removing it fixed the problem. Sometimes you can stare at things too long! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277688 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
IIS Virtual DIrectories and Shared Scope Vars
Hello I posted this about a year ago, but got it working on a server of ours - now on a new server, same problem, and cant figure out why. Very simple: We have multiple sites: Site 1 Site 2 Site 3 Etc... Each is in its own directory structure, has its own application.cfm, etc. Each one has a virtual mapping in IIS to a directory called COMMON, that has some shared code. So within the IIS site for each site, there is a Virtual Directory mapping to this Common directory. Now, in the directory for COMMON, we have coldfusion code that we want to be able to access the scoped variables (such as application, request, etc) of each individual site when called from that site. So in the COMMON directory, there is an APPLICATION.CFM file that has one line: cfinclude template=/application.cfm This works flawless on one production server, but on another, we just get an error: Could not find the included template /application.cfm. Note: If you wish to use an absolute template path (e.g. TEMPLATE=/mypath/index.cfm) with CFINCLUDE then you must create a mapping for the path using the ColdFusion Administrator. Using relative paths (e.g. TEMPLATE=index.cfm or TEMPLATE=../index.cfm) does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible. The error occurred in D:\hostedsites\clientsites\common\Application.cfm: line 2 1 : 2 : cfinclude template=/application.cfm 3 : For my life, I cannot figure out why. On the server that DOES work, we have no special CUSTOM TAG PATHS, no MAPPINGS,.and it works joyfully - its only on this new server. We are using CF version 7,0,2,142559 and IIS 5.0. Help is needed and appreciated! Thanks, Ben ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277475 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: IIS Virtual DIrectories and Shared Scope Vars
hmm... Depending on the App you might get away with a CF mapping instead, but the issue is simple. All it is, is a directory structure that will be included as part of the website. So when the code is run in there it should run using the same Application.cfm / Application.cfc that is used from the calling Application. So what does that mean, remove the need for Application.cfm altogether from your common VD. On 5/10/07, Ben Shichman [EMAIL PROTECTED] wrote: Hello I posted this about a year ago, but got it working on a server of ours - now on a new server, same problem, and cant figure out why. Very simple: We have multiple sites: Site 1 Site 2 Site 3 Etc... Each is in its own directory structure, has its own application.cfm, etc. Each one has a virtual mapping in IIS to a directory called COMMON, that has some shared code. So within the IIS site for each site, there is a Virtual Directory mapping to this Common directory. Now, in the directory for COMMON, we have coldfusion code that we want to be able to access the scoped variables (such as application, request, etc) of each individual site when called from that site. So in the COMMON directory, there is an APPLICATION.CFM file that has one line: cfinclude template=/application.cfm This works flawless on one production server, but on another, we just get an error: Could not find the included template /application.cfm. Note: If you wish to use an absolute template path (e.g. TEMPLATE=/mypath/index.cfm) with CFINCLUDE then you must create a mapping for the path using the ColdFusion Administrator. Using relative paths (e.g. TEMPLATE=index.cfm or TEMPLATE=../index.cfm) does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible. The error occurred in D:\hostedsites\clientsites\common\Application.cfm: line 2 1 : 2 : cfinclude template=/application.cfm 3 : For my life, I cannot figure out why. On the server that DOES work, we have no special CUSTOM TAG PATHS, no MAPPINGS,.and it works joyfully - its only on this new server. We are using CF version 7,0,2,142559 and IIS 5.0. Help is needed and appreciated! Thanks, Ben ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277481 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: IIS Virtual DIrectories and Shared Scope Vars
1 : 2 : cfinclude template=/application.cfm 3 : For my life, I cannot figure out why. On the server that DOES work, we have no special CUSTOM TAG PATHS, no MAPPINGS,.and it works joyfully - its only on this new server. I'm fairly certain you're wrong about that. Any time you use a slash as the first character within the path for CFINCLUDE or CFMODULE, the path is always resolved via a mapping. I strongly suspect that you have at least one mapping; the one that comes with a default install of CF, and is mapped to wherever you specified as your web root during the install. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! This email has been processed by SmoothZap - www.smoothwall.net ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277483 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Mappings? Virtual Directories?
Before I go charging off in the wrong direction, I'd appreciate some ideas on using CF mappings and IIS 6 Virtual Directories. I have a cart application, for example, being used by several client, and currently when I make any updates I have the odious task of copy/pasting the new files to all of the sites. It strikes me it would be a heck of a lot easier if they all used the same files. Any ideas on how I could go about this please? TIA, Jenny ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276483 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Mappings? Virtual Directories?
Is it the same code? Different domains? If it is not the same domain, use a ColdFusion mapping, it will be easier. If you want to use VD instead you can still do so, but you will need to do this each time you create a new one, and they will all need to point to the same file base. This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Jenny Gavin-Wear To: CF-Talk Sent: Sat Apr 28 17:37:55 2007 Subject: Mappings? Virtual Directories? Before I go charging off in the wrong direction, I'd appreciate some ideas on using CF mappings and IIS 6 Virtual Directories. I have a cart application, for example, being used by several client, and currently when I make any updates I have the odious task of copy/pasting the new files to all of the sites. It strikes me it would be a heck of a lot easier if they all used the same files. Any ideas on how I could go about this please? TIA, Jenny ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276484 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Mappings? Virtual Directories?
We do this with a a few folders we use across sites on our box. One folder is a Images folder which of course needs to be created as a virtual directory since it is pushing content to the browser. The other is a cf mapping directory for code which does not need to be in the web root. Coldfusion needs to run this code but the browser is not displaying it directly so this type of folder does not need the virtual directory. casey On 4/28/07, Jenny Gavin-Wear [EMAIL PROTECTED] wrote: Before I go charging off in the wrong direction, I'd appreciate some ideas on using CF mappings and IIS 6 Virtual Directories. I have a cart application, for example, being used by several client, and currently when I make any updates I have the odious task of copy/pasting the new files to all of the sites. It strikes me it would be a heck of a lot easier if they all used the same files. Any ideas on how I could go about this please? TIA, Jenny ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276487 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Mappings? Virtual Directories?
Hi Neil and Casey, thanks for your replies... My current cart structure is to have all of the front end in root and the cart admin and includes in a sub dir. So all the files that change in design are in root, and everything is static for each site in /cart. Each site has a seperate domain and database. still confuddled* ... Jenny -Original Message- From: Casey Dougall [mailto:[EMAIL PROTECTED] Sent: 28 April 2007 18:30 To: CF-Talk Subject: Re: Mappings? Virtual Directories? We do this with a a few folders we use across sites on our box. One folder is a Images folder which of course needs to be created as a virtual directory since it is pushing content to the browser. The other is a cf mapping directory for code which does not need to be in the web root. Coldfusion needs to run this code but the browser is not displaying it directly so this type of folder does not need the virtual directory. casey On 4/28/07, Jenny Gavin-Wear [EMAIL PROTECTED] wrote: Before I go charging off in the wrong direction, I'd appreciate some ideas on using CF mappings and IIS 6 Virtual Directories. I have a cart application, for example, being used by several client, and currently when I make any updates I have the odious task of copy/pasting the new files to all of the sites. It strikes me it would be a heck of a lot easier if they all used the same files. Any ideas on how I could go about this please? TIA, Jenny ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276495 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Multiple Instances and Virtual Directories...
Matthew Williams wrote: Please point me to any document stating as much. I can't give you access to our intranet. We do lots of clustering for many customers, but we only support one configuration: our configuration. We are not going to support whatever the customer comes up with, we have a working recipe that has been tested inside-out, which we have readily available in our test environment and that is what we use. We know that there are many more possibilities for building clusters, but it just isn't worth the testing effort to get them production-ready. Jochem ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268414 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Multiple Instances and Virtual Directories...
Matthew Williams wrote: How am I the lucky one to find all the odd-ball issues. Because you don't tell your customers that running multiple clusters on one server and / or multiple clusters in one site is not supported beforehand :) Jochem ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268378 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Multiple Instances and Virtual Directories...
Please point me to any document stating as much. Now, if the customers would write better code (rather their developers), I would have much fewer issues ;). Since they don't, and it takes near to 6 months to a year to affect changes, this is the only path I have to travel down. Please keep in mind I inherited all of this. I never would have made customers have a virtual site instead of a website were we to do it all over again. But we can't, there's no money in it, and it would be an mess to maintain SSL certs for it. Yes I'm defensive, apologies, but there's not really much I can do beyond this to make our environment more stable. Matthew Williams Geodesic GraFX Jochem van Dieten wrote: Matthew Williams wrote: How am I the lucky one to find all the odd-ball issues. Because you don't tell your customers that running multiple clusters on one server and / or multiple clusters in one site is not supported beforehand :) Jochem ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268382 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Multiple Instances and Virtual Directories...
We have multiple CF instances (all clustered) on our production systems. The problem is, we don't run multiple websites (although this could change). Every application has a /something site off of the root website. I've mapped sites that use a different instance to the correct JRun filter (wsconfig/whatever) and all seems well... except sometimes, the JSessionID assigned to a user belongs to the main website. When this happens, a persons' request just round robins within the instances, and session information is never stored correctly. Has anyone else ever come across this? I'm thinking the only solution will be to move sites with their own instance into their own website, but it's going to involve multiple SSL sites on one IP with differing host heads... requiring a large headache of IIS administration requiring *.mysite.com type CERTS (our load balancing software defines a node by machine name, and can't handle multiple IPs on a single server). Anyone else just map virtual directories to different instances? Matthew Williams Geodesic GraFX ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268228 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Multiple Instances and Virtual Directories...
Matt, I'm a little confused on what the problem is. You're saying you have several sites such as www.example.com/app1 www.example.com/app2 www.example.com/app3 and what you're saying is that app1, app2, and app3 are virtual folders, and you've set up each virtual folder to go to a different instance of JRUN. If you have multiple clustered instances of JRUN, the connector will round robin between all the instances, and you should have session sharing enabled so that sessions replicate between the instances. I'm not sure exactly how the JSessionID cookies work, but if they are per application, and you have different application names for each app, it's possible that they are overriding each other. Try using HTTPLook and see what cookies are being sent and received. If this is indeed the problem, you might have to set up separate domains (or subdomains) for each app. Something like App1.example.com App2.example.com App3.example.com Hope this helps, Russ -Original Message- From: Matthew Williams [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 11:03 AM To: CF-Talk Subject: Multiple Instances and Virtual Directories... We have multiple CF instances (all clustered) on our production systems. The problem is, we don't run multiple websites (although this could change). Every application has a /something site off of the root website. I've mapped sites that use a different instance to the correct JRun filter (wsconfig/whatever) and all seems well... except sometimes, the JSessionID assigned to a user belongs to the main website. When this happens, a persons' request just round robins within the instances, and session information is never stored correctly. Has anyone else ever come across this? I'm thinking the only solution will be to move sites with their own instance into their own website, but it's going to involve multiple SSL sites on one IP with differing host heads... requiring a large headache of IIS administration requiring *.mysite.com type CERTS (our load balancing software defines a node by machine name, and can't handle multiple IPs on a single server). Anyone else just map virtual directories to different instances? Matthew Williams Geodesic GraFX ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268234 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Multiple Instances and Virtual Directories...
Matt, I'm a little confused on what the problem is. You're saying you have several sites such as www.example.com/app1 www.example.com/app2 www.example.com/app3 and what you're saying is that app1, app2, and app3 are virtual folders, and you've set up each virtual folder to go to a different instance of JRUN. If you have multiple clustered instances of JRUN, the connector will round robin between all the instances, and you should have session sharing enabled so that sessions replicate between the instances. I'm not sure exactly how the JSessionID cookies work, but if they are per application, and you have different application names for each app, it's possible that they are overriding each other. Try using HTTPLook and see what cookies are being sent and received. If this is indeed the problem, you might have to set up separate domains (or subdomains) for each app. Something like App1.example.com App2.example.com App3.example.com Hope this helps, Russ It looks like such: Cluster A (with replication - J2EE sessions enabled) Machine A: www.mysite.com www.mysite.com/site1-n Machine B: www.mysite.com www.mysite.com/site1-n --- Cluster B (with replication - J2EE sessions enabled) Note: Machine A B same as above Machine A: https://www.mysite.com/somesite1 Machine B: https://www.mysite.com/somesite1 What happens, is that a request to /somesite1 is getting a JSessionID that matches one of the IDs from cluster A. Even though the request was made to one of the sites in cluster B. I was looking at the requests in FusionReactor, but it didn't really dawn on me as to what was happening until I looked in the wsconfig/num/logFiles that it was breaking session stickiness and failing. It's just extremely odd that sometimes it works, and the right JSessionID is generated, and sometimes it doesn't work. I agree that the best solution would be to stick everyone into their own domain, but it's going to take time and paper work to enact such a change. People dont' like to hear that though. Matthew Williams Geodesic GraFX ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268242 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Multiple Instances and Virtual Directories...
It sounds like you need at least separate domains for clustera and clusterb. Maybe something like www.mysite.com/ www.mysite.com/site1-m and www2.mysite.com/somesite1 You can also just combine the 2 clusters and have all 4 instances server all the requests. What is the reason that the sites were split off into 2 clusters in the first place? russ -Original Message- From: Matthew Williams [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 12:39 PM To: CF-Talk Subject: Re: Multiple Instances and Virtual Directories... Matt, I'm a little confused on what the problem is. You're saying you have several sites such as www.example.com/app1 www.example.com/app2 www.example.com/app3 and what you're saying is that app1, app2, and app3 are virtual folders, and you've set up each virtual folder to go to a different instance of JRUN. If you have multiple clustered instances of JRUN, the connector will round robin between all the instances, and you should have session sharing enabled so that sessions replicate between the instances. I'm not sure exactly how the JSessionID cookies work, but if they are per application, and you have different application names for each app, it's possible that they are overriding each other. Try using HTTPLook and see what cookies are being sent and received. If this is indeed the problem, you might have to set up separate domains (or subdomains) for each app. Something like App1.example.com App2.example.com App3.example.com Hope this helps, Russ It looks like such: Cluster A (with replication - J2EE sessions enabled) Machine A: www.mysite.com www.mysite.com/site1-n Machine B: www.mysite.com www.mysite.com/site1-n --- Cluster B (with replication - J2EE sessions enabled) Note: Machine A B same as above Machine A: https://www.mysite.com/somesite1 Machine B: https://www.mysite.com/somesite1 What happens, is that a request to /somesite1 is getting a JSessionID that matches one of the IDs from cluster A. Even though the request was made to one of the sites in cluster B. I was looking at the requests in FusionReactor, but it didn't really dawn on me as to what was happening until I looked in the wsconfig/num/logFiles that it was breaking session stickiness and failing. It's just extremely odd that sometimes it works, and the right JSessionID is generated, and sometimes it doesn't work. I agree that the best solution would be to stick everyone into their own domain, but it's going to take time and paper work to enact such a change. People dont' like to hear that though. Matthew Williams Geodesic GraFX ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268250 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Multiple Instances and Virtual Directories...
Matthew Williams wrote: We have multiple CF instances (all clustered) on our production systems. The problem is, we don't run multiple websites (although this could change). Every application has a /something site off of the root website. I've mapped sites that use a different instance to the correct JRun filter (wsconfig/whatever) and all seems well... except sometimes, the JSessionID assigned to a user belongs to the main website. When this happens, a persons' request just round robins within the instances, and session information is never stored correctly. Has anyone else ever come across this? No, but I am willing to take a guess :) When you connect IIS to a JRun cluster the connector uses sticky sessions to forward requests from one browser to the same JRun instance. The connector knows which JRun instance because each JRun instance has a connector.properties file with a server.id that corresponds to the first 4 characters of the jsessionid cookie. So what I think is happening is that the jsessionid has a server.id from cluster A while the request is for a virtual directory that is served by cluster B. If you are feeling adventurous you could try to make sure that the same server.ids are present in each cluster, but that is untested and you should try that in a test environment first. Jochem ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268256 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Multiple Instances and Virtual Directories...
It sounds like you need at least separate domains for clustera and clusterb. Maybe something like www.mysite.com/ www.mysite.com/site1-m and www2.mysite.com/somesite1 You can also just combine the 2 clusters and have all 4 instances server all the requests. What is the reason that the sites were split off into 2 clusters in the first place? russ The lone application is in its own cluster because it is a resource hog. It's been affecting other applications during times of heavy load. I forgot to mention, this is a shared CF host with 40+ applications. Without the /somesite1 traffic (and database pulls) in Cluster A, instance uptime is currently at a week and growing. However, the cause of the issues has been identified. User vists www.mysite.com/site1. User gets generated a cookie for JESSIONID with one of cluster A's ID. Instead of opening a bookmark to www.mysite.com/somesite1, user clicks a link from within /site1 that takes them to /somesite1. The browser is never closed, and the cookie for JESSIONID is never destroyed. Cluster B sees that the JESSIONID is not part of the cluster, so it just round-robins the request forever. The end result is User has to login to the application over, and over again, but never gets anywhere. Usually, the user gets frustrated, closes the browser, and tries again. If they do directly to /somesite1, it will then work fine. So, the ultimate solution would be to give /somesite1 its own domain, but the quick and dirty solution is likely going to be to delete the JSESSION cookie before the get to /somesite1. How am I the lucky one to find all the odd-ball issues. Matthew Williams Geodesic GraFX ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268260 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: IIS 6 Virtual Directories
For one thing these virtuals are created by the connector scripts... If you run the connector script subsquent to installing a site - you get these mappings... -Original Message- From: Snake [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06, 2006 6:33 PM To: CF-Talk Subject: RE: IIS 6 Virtual Directories CFIDE and JRUNSCRIPTS are created only for the default web site, I have never seen thema utomatically created on addiitonal sites. We use HELM control panel to create/manage all our sites and this create sthose required VDIRS -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: 06 September 2006 17:16 To: CF-Talk Subject: SOT: IIS 6 Virtual Directories Is there a way to configure a virtual directory in IIS that automatically applies to *ALL* web sites? There must be, because when you install coldfusion, cfdocs and cfide are automatically added the new web sites created in IIS (if coldfusion is configured standalone). I'm not sure how it's done though. I'd like to create a couple of virtual directories on each of my 8 hosted sites without going through the obnoxious process of point and clicking my way through the creation of 16 or 24 different virtual directories. Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252339 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
SOT: IIS 6 Virtual Directories
Is there a way to configure a virtual directory in IIS that automatically applies to *ALL* web sites? There must be, because when you install coldfusion, cfdocs and cfide are automatically added the new web sites created in IIS (if coldfusion is configured standalone). I'm not sure how it's done though. I'd like to create a couple of virtual directories on each of my 8 hosted sites without going through the obnoxious process of point and clicking my way through the creation of 16 or 24 different virtual directories. Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252225 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SOT: IIS 6 Virtual Directories
Probably several ways. I remember using cfx_IIS for this kind of thing. You probably also have the ability to use the .vbs admin files in the wwwroot. You could also roll your own using a VB app. Jeez, there may even be interfaces for this in IIS 6 which are new since 5. This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Rick Root To: CF-Talk Sent: Wed Sep 06 17:15:43 2006 Subject: SOT: IIS 6 Virtual Directories Is there a way to configure a virtual directory in IIS that automatically applies to *ALL* web sites? There must be, because when you install coldfusion, cfdocs and cfide are automatically added the new web sites created in IIS (if coldfusion is configured standalone). I'm not sure how it's done though. I'd like to create a couple of virtual directories on each of my 8 hosted sites without going through the obnoxious process of point and clicking my way through the creation of 16 or 24 different virtual directories. Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252230 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SOT: IIS 6 Virtual Directories
Robertson-Ravo, Neil (RX) wrote: Probably several ways. I remember using cfx_IIS for this kind of thing. You probably also have the ability to use the .vbs admin files in the wwwroot. You could also roll your own using a VB app. Jeez, there may even be interfaces for this in IIS 6 which are new since 5. That last part there doesn't seem to be.. you can edit global web site properties but there doesn't seem to be any way in the IIS admin to create a global virtual directory... I'll check out the vb admin scripts Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252232 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SOT: IIS 6 Virtual Directories
Check out what you can do via COM as well (if anything) This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Rick Root To: CF-Talk Sent: Wed Sep 06 17:40:03 2006 Subject: Re: SOT: IIS 6 Virtual Directories Robertson-Ravo, Neil (RX) wrote: Probably several ways. I remember using cfx_IIS for this kind of thing. You probably also have the ability to use the .vbs admin files in the wwwroot. You could also roll your own using a VB app. Jeez, there may even be interfaces for this in IIS 6 which are new since 5. That last part there doesn't seem to be.. you can edit global web site properties but there doesn't seem to be any way in the IIS admin to create a global virtual directory... I'll check out the vb admin scripts Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252234 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SOT: IIS 6 Virtual Directories
iisvdir.vbs doesn't do exactly what I want but at least I can copy/paste... anything is easier than creating 24 virtual directories via point and click! Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252236 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: SOT: IIS 6 Virtual Directories
iisvdir.vbs doesn't do exactly what I want but at least I can copy/paste... anything is easier than creating 24 virtual directories via point and click! This came up on the list a few days ago. I've written scripts to do this before; unfortunately, I don't have them available where I am now. But, it was very easy to do - you might want to check out sample scripts on http://www.iisfaq.com/. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252237 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SOT: IIS 6 Virtual Directories
You can certainly do this via cfx_IIS tag. Not sure what the support it like though for II6. This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Rick Root To: CF-Talk Sent: Wed Sep 06 17:51:05 2006 Subject: Re: SOT: IIS 6 Virtual Directories iisvdir.vbs doesn't do exactly what I want but at least I can copy/paste... anything is easier than creating 24 virtual directories via point and click! Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252238 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: IIS 6 Virtual Directories
CFIDE and JRUNSCRIPTS are created only for the default web site, I have never seen thema utomatically created on addiitonal sites. We use HELM control panel to create/manage all our sites and this create sthose required VDIRS -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: 06 September 2006 17:16 To: CF-Talk Subject: SOT: IIS 6 Virtual Directories Is there a way to configure a virtual directory in IIS that automatically applies to *ALL* web sites? There must be, because when you install coldfusion, cfdocs and cfide are automatically added the new web sites created in IIS (if coldfusion is configured standalone). I'm not sure how it's done though. I'd like to create a couple of virtual directories on each of my 8 hosted sites without going through the obnoxious process of point and clicking my way through the creation of 16 or 24 different virtual directories. Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252306 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: IIS 6 Virtual Directories
Snake wrote: CFIDE and JRUNSCRIPTS are created only for the default web site, I have never seen thema utomatically created on addiitonal sites. We use HELM control panel to create/manage all our sites and this create sthose required VDIRS Every IIS server I've managed has automatically had cfide But those have *ALWAYS* been CFMX installed in standalone mode. Rick ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252309 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Virtual Directories
I tried this, but it doesn't seem to take. I tried a directoryexists(/tools), and it came up negative. Cutter Zaphod Beeblebrox wrote: edit your *cf_root*\wwwroot\WEB-INF\jrun-web.xml file and add mappings in this format: virtual-mapping resource-path/tools/resource-path system-pathC:/inetpub/wwwroot/tools/system-path /virtual-mapping On 4/18/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote: Anyone have a clue how to set up a virtual directory (not a cf mapping) using the built in CF web server? Or if it's even possible to? Cutter ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238127 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Virtual Directories
I know it's a silly question, but did you restart the CF services??? Cutter (CFRelated) wrote: I tried this, but it doesn't seem to take. I tried a directoryexists(/tools), and it came up negative. Cutter Zaphod Beeblebrox wrote: edit your *cf_root*\wwwroot\WEB-INF\jrun-web.xml file and add mappings in this format: virtual-mapping resource-path/tools/resource-path system-pathC:/inetpub/wwwroot/tools/system-path /virtual-mapping On 4/18/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote: Anyone have a clue how to set up a virtual directory (not a cf mapping) using the built in CF web server? Or if it's even possible to? Cutter ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238136 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Virtual Directories
yep, nothing Cutter Ken Ferguson wrote: I know it's a silly question, but did you restart the CF services??? Cutter (CFRelated) wrote: I tried this, but it doesn't seem to take. I tried a directoryexists(/tools), and it came up negative. Cutter Zaphod Beeblebrox wrote: edit your *cf_root*\wwwroot\WEB-INF\jrun-web.xml file and add mappings in this format: virtual-mapping resource-path/tools/resource-path system-pathC:/inetpub/wwwroot/tools/system-path /virtual-mapping On 4/18/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote: Anyone have a clue how to set up a virtual directory (not a cf mapping) using the built in CF web server? Or if it's even possible to? Cutter ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238137 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Virtual Directories
I'm not surprised. DirectoryExists() works at the OS level, not webserver. I would try a cfhttp. If you get an error code of 200 or 403 if the (virtual) directory exists. If it doesn't, you should get a 404. -Original Message- From: Cutter (CFRelated) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 12:43 PM To: CF-Talk Subject: Re: Virtual Directories yep, nothing Cutter Ken Ferguson wrote: I know it's a silly question, but did you restart the CF services??? Cutter (CFRelated) wrote: I tried this, but it doesn't seem to take. I tried a directoryexists(/tools), and it came up negative. Cutter Zaphod Beeblebrox wrote: edit your *cf_root*\wwwroot\WEB-INF\jrun-web.xml file and add mappings in this format: virtual-mapping resource-path/tools/resource-path system-pathC:/inetpub/wwwroot/tools/system-path /virtual-mapping On 4/18/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote: Anyone have a clue how to set up a virtual directory (not a cf mapping) using the built in CF web server? Or if it's even possible to? Cutter ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238145 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Virtual Directories
Anyone have a clue how to set up a virtual directory (not a cf mapping) using the built in CF web server? Or if it's even possible to? Cutter Cutter, You may want to try this article on the Adobe/Macromedia site on configuring the built in web server: http://www.antiwrap.com/?957 It has a section on setting up virtual directories: http://www.antiwrap.com/?955 hth, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection http://www.beiresources.org email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 -- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238193 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Virtual Directories
I finally figured it out. I wrote a blog entry on it: http://blog.cutterscrossing.com/index.cfm/2006/4/19/CFs-BuiltIn-Server-and-Virtual-Directories Thanks to everyone for your input. Cutter Larry Lyons wrote: Anyone have a clue how to set up a virtual directory (not a cf mapping) using the built in CF web server? Or if it's even possible to? Cutter Cutter, You may want to try this article on the Adobe/Macromedia site on configuring the built in web server: http://www.antiwrap.com/?957 It has a section on setting up virtual directories: http://www.antiwrap.com/?955 hth, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection http://www.beiresources.org email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 -- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238206 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Virtual Directories
You never said you were attempting to map a directory to a remote server.. No wonder you spent so much time on this issue. -- Casey Dougall On 4/19/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote: I finally figured it out. I wrote a blog entry on it: http://blog.cutterscrossing.com/index.cfm/2006/4/19/CFs-BuiltIn-Server-and-Virtual-Directories Thanks to everyone for your input. Cutter Larry Lyons wrote: Anyone have a clue how to set up a virtual directory (not a cf mapping) using the built in CF web server? Or if it's even possible to? Cutter Cutter, You may want to try this article on the Adobe/Macromedia site on configuring the built in web server: http://www.antiwrap.com/?957 It has a section on setting up virtual directories: http://www.antiwrap.com/?955 hth, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection http://www.beiresources.org email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 -- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238208 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Virtual Directories
No, the remote server was just a bonus, that wasn't my initial intention. Cutter Casey Dougall wrote: You never said you were attempting to map a directory to a remote server.. No wonder you spent so much time on this issue. -- Casey Dougall On 4/19/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote: I finally figured it out. I wrote a blog entry on it: http://blog.cutterscrossing.com/index.cfm/2006/4/19/CFs-BuiltIn-Server-and-Virtual-Directories Thanks to everyone for your input. Cutter Larry Lyons wrote: Anyone have a clue how to set up a virtual directory (not a cf mapping) using the built in CF web server? Or if it's even possible to? Cutter Cutter, You may want to try this article on the Adobe/Macromedia site on configuring the built in web server: http://www.antiwrap.com/?957 It has a section on setting up virtual directories: http://www.antiwrap.com/?955 hth, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection http://www.beiresources.org email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 -- ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238209 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Virtual Directories
Anyone have a clue how to set up a virtual directory (not a cf mapping) using the built in CF web server? Or if it's even possible to? Cutter ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238053 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Virtual Directories
edit your *cf_root*\wwwroot\WEB-INF\jrun-web.xml file and add mappings in this format: virtual-mapping resource-path/tools/resource-path system-pathC:/inetpub/wwwroot/tools/system-path /virtual-mapping On 4/18/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote: Anyone have a clue how to set up a virtual directory (not a cf mapping) using the built in CF web server? Or if it's even possible to? Cutter ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238056 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Scope Woes Virtual Directories
Can you set the variables that need to be shared in a scope that can be shared? Like the server scope? The only other option would be to handle your sessions manually in my mind. Have a table where you generate unique session keys and assign those to the user via a cookie or url variable. Keep track of last accessed time and that sort of thing. Then you can save whatever variables you want into another table and reference by the session key and variable name. It's more DB intensive but it gives the flexibility you want as long as db datatypes can handle the data you're wanting to shared. You can also let CF manage your sessions, but store the vars you want to share in a table with the session key and variable name so you can query it out from any app. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 2:55 PM To: CF-Talk Subject: Re: Scope Woes Virtual Directories Howard: Nice idea but the SQL cost is more than we want to deal with. John: Our applications have to have unique names so that we don't have application scoped vars over written (thinks like DSN, file paths etc are stored in the application scope). Any other ideas or thoughts?? I wish CF would just see this directory as a sub directory of each of my sites. Eric Jones On 1/24/06, Burns, John D [EMAIL PROTECTED] wrote: You don't need unique application names. Lets say you have one site and at the top of it you have cfapplication name=myApp then you set some application variables somewhere in there. Then, you have another site on the same server, you can put cfapplication name=myApp in that site and it will have access to the variables that are set in the first site. However, keep in mind, you want to be careful about multiple sites setting and getting variables to make sure that you're not relying on a variable that may not have been set. Especially when the server is rebooted or something like that. Many people have the misconception that the cfapplication tag has to go in the Application.cfm but that's not true. It can go at the top of each individual page and you could leave out the Application.cfm altogether. The Application.cfm just makes it easier because it gets called everytime. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:59 AM To: CF-Talk Subject: Re: Scope Woes Virtual Directories right but how can we do this and still maintain the fact that these files are shared among 50 other sites, with 50 unique application names? On 1/24/06, Burns, John D [EMAIL PROTECTED] wrote: It depends on the scope you're using. If you're talking application and session variables, you need cfapplication to define that these pages are part of the application, thus allowing it to access the scoped variables. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 9:59 AM To: CF-Talk Subject: Scope Woes Virtual Directories Ok here's the scenario. We have 50 sites on a server using our CMS. Each of these sites has an IIS virtual Directory called global. global is a mapped directory in CF Admin. The problem we are having is when a person referances http://theresite.com/global/ticket/index.cfm the code doesn't have access to many of the scoped variables. Any ideas how we can get global to see all the scoped variables? jonese ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230407 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Scope Woes Virtual Directories
James- Very good idea. I didn't think of that one but that would work very well if we're understanding his needs correctly. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 11:52 PM To: CF-Talk Subject: Re: Scope Woes Virtual Directories Create a common app name for all your shared application scope variables. In each site's Application.cfm file, use a CFAPPLICATION tag to get the variables from this scope and put them in the request scope. Then use a second CFAPPLICATION tag to swap the application to the unique one for that site. When you need to write to the common application scope, swap back again with a new CFAPPLICTION tag, etc etc. It will be far quicker that the DB calls. On 1/24/06, jonese [EMAIL PROTECTED] wrote: Howard: Nice idea but the SQL cost is more than we want to deal with. John: Our applications have to have unique names so that we don't have application scoped vars over written (thinks like DSN, file paths etc are stored in the application scope). Any other ideas or thoughts?? -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230408 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Scope Woes Virtual Directories
Ok here's the scenario. We have 50 sites on a server using our CMS. Each of these sites has an IIS virtual Directory called global. global is a mapped directory in CF Admin. The problem we are having is when a person referances http://theresite.com/global/ticket/index.cfm the code doesn't have access to many of the scoped variables. Any ideas how we can get global to see all the scoped variables? jonese ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230310 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Scope Woes Virtual Directories
It depends on the scope you're using. If you're talking application and session variables, you need cfapplication to define that these pages are part of the application, thus allowing it to access the scoped variables. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 9:59 AM To: CF-Talk Subject: Scope Woes Virtual Directories Ok here's the scenario. We have 50 sites on a server using our CMS. Each of these sites has an IIS virtual Directory called global. global is a mapped directory in CF Admin. The problem we are having is when a person referances http://theresite.com/global/ticket/index.cfm the code doesn't have access to many of the scoped variables. Any ideas how we can get global to see all the scoped variables? jonese ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230312 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Scope Woes Virtual Directories
right but how can we do this and still maintain the fact that these files are shared among 50 other sites, with 50 unique application names? On 1/24/06, Burns, John D [EMAIL PROTECTED] wrote: It depends on the scope you're using. If you're talking application and session variables, you need cfapplication to define that these pages are part of the application, thus allowing it to access the scoped variables. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 9:59 AM To: CF-Talk Subject: Scope Woes Virtual Directories Ok here's the scenario. We have 50 sites on a server using our CMS. Each of these sites has an IIS virtual Directory called global. global is a mapped directory in CF Admin. The problem we are having is when a person referances http://theresite.com/global/ticket/index.cfm the code doesn't have access to many of the scoped variables. Any ideas how we can get global to see all the scoped variables? jonese ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230316 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Scope Woes Virtual Directories
On 1/24/06, jonese [EMAIL PROTECTED] wrote: right but how can we do this and still maintain the fact that these files are shared among 50 other sites, with 50 unique application names? I dimly remember some Java trickery you can do (in MX of course) to grab variables from the server for a given application. However, that path is likely fraught with peril. My first inclination would be to create a central repository for shared variable values. Much like the way CF can save client scopes to a database. Create a database table that stores the session, using some user value that is unique across applications as the primary key (could be session, I can't remember if they are unique to the server or to an app). Create a custom tag that reads and writes an arbitrarily named struct (sharedVariables for instance) to this table. Put this custom tag in Application.cfm and OnRequestEnd.cfm so the shared variables struct is refreshed and saved for each request. When you need to read or write a variable that should be shared, you use the sharedVariables struct as the scope. Pros: no additional work when you add a 51st application. Cons: read and write to the database for each user request, requires a user unique key. -- Howard Fore, [EMAIL PROTECTED] ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230319 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Scope Woes Virtual Directories
You don't need unique application names. Lets say you have one site and at the top of it you have cfapplication name=myApp then you set some application variables somewhere in there. Then, you have another site on the same server, you can put cfapplication name=myApp in that site and it will have access to the variables that are set in the first site. However, keep in mind, you want to be careful about multiple sites setting and getting variables to make sure that you're not relying on a variable that may not have been set. Especially when the server is rebooted or something like that. Many people have the misconception that the cfapplication tag has to go in the Application.cfm but that's not true. It can go at the top of each individual page and you could leave out the Application.cfm altogether. The Application.cfm just makes it easier because it gets called everytime. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:59 AM To: CF-Talk Subject: Re: Scope Woes Virtual Directories right but how can we do this and still maintain the fact that these files are shared among 50 other sites, with 50 unique application names? On 1/24/06, Burns, John D [EMAIL PROTECTED] wrote: It depends on the scope you're using. If you're talking application and session variables, you need cfapplication to define that these pages are part of the application, thus allowing it to access the scoped variables. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 9:59 AM To: CF-Talk Subject: Scope Woes Virtual Directories Ok here's the scenario. We have 50 sites on a server using our CMS. Each of these sites has an IIS virtual Directory called global. global is a mapped directory in CF Admin. The problem we are having is when a person referances http://theresite.com/global/ticket/index.cfm the code doesn't have access to many of the scoped variables. Any ideas how we can get global to see all the scoped variables? jonese ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230329 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Scope Woes Virtual Directories
Howard: Nice idea but the SQL cost is more than we want to deal with. John: Our applications have to have unique names so that we don't have application scoped vars over written (thinks like DSN, file paths etc are stored in the application scope). Any other ideas or thoughts?? I wish CF would just see this directory as a sub directory of each of my sites. Eric Jones On 1/24/06, Burns, John D [EMAIL PROTECTED] wrote: You don't need unique application names. Lets say you have one site and at the top of it you have cfapplication name=myApp then you set some application variables somewhere in there. Then, you have another site on the same server, you can put cfapplication name=myApp in that site and it will have access to the variables that are set in the first site. However, keep in mind, you want to be careful about multiple sites setting and getting variables to make sure that you're not relying on a variable that may not have been set. Especially when the server is rebooted or something like that. Many people have the misconception that the cfapplication tag has to go in the Application.cfm but that's not true. It can go at the top of each individual page and you could leave out the Application.cfm altogether. The Application.cfm just makes it easier because it gets called everytime. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:59 AM To: CF-Talk Subject: Re: Scope Woes Virtual Directories right but how can we do this and still maintain the fact that these files are shared among 50 other sites, with 50 unique application names? On 1/24/06, Burns, John D [EMAIL PROTECTED] wrote: It depends on the scope you're using. If you're talking application and session variables, you need cfapplication to define that these pages are part of the application, thus allowing it to access the scoped variables. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 9:59 AM To: CF-Talk Subject: Scope Woes Virtual Directories Ok here's the scenario. We have 50 sites on a server using our CMS. Each of these sites has an IIS virtual Directory called global. global is a mapped directory in CF Admin. The problem we are having is when a person referances http://theresite.com/global/ticket/index.cfm the code doesn't have access to many of the scoped variables. Any ideas how we can get global to see all the scoped variables? jonese ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230363 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Scope Woes Virtual Directories
Another thing I've done when I needed to pass session info into a system that didn't share sessions (CF into PHP, or Perl into CF) is to create a script on either side that receives the variable data as URL parameters, then creates the session accordingly. You direct every site-to-site link through this script. One parameter is the eventual final URL and all the others are variables to stuff into the new session. The downside here is that URL parameters are inherently insecure. On 1/24/06, jonese [EMAIL PROTECTED] wrote: Howard: Nice idea but the SQL cost is more than we want to deal with. John: Our applications have to have unique names so that we don't have application scoped vars over written (thinks like DSN, file paths etc are stored in the application scope). Any other ideas or thoughts?? I wish CF would just see this directory as a sub directory of each of my sites. Eric Jones On 1/24/06, Burns, John D [EMAIL PROTECTED] wrote: You don't need unique application names. Lets say you have one site and at the top of it you have cfapplication name=myApp then you set some application variables somewhere in there. Then, you have another site on the same server, you can put cfapplication name=myApp in that site and it will have access to the variables that are set in the first site. However, keep in mind, you want to be careful about multiple sites setting and getting variables to make sure that you're not relying on a variable that may not have been set. Especially when the server is rebooted or something like that. Many people have the misconception that the cfapplication tag has to go in the Application.cfm but that's not true. It can go at the top of each individual page and you could leave out the Application.cfm altogether. The Application.cfm just makes it easier because it gets called everytime. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:59 AM To: CF-Talk Subject: Re: Scope Woes Virtual Directories right but how can we do this and still maintain the fact that these files are shared among 50 other sites, with 50 unique application names? On 1/24/06, Burns, John D [EMAIL PROTECTED] wrote: It depends on the scope you're using. If you're talking application and session variables, you need cfapplication to define that these pages are part of the application, thus allowing it to access the scoped variables. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 9:59 AM To: CF-Talk Subject: Scope Woes Virtual Directories Ok here's the scenario. We have 50 sites on a server using our CMS. Each of these sites has an IIS virtual Directory called global. global is a mapped directory in CF Admin. The problem we are having is when a person referances http://theresite.com/global/ticket/index.cfm the code doesn't have access to many of the scoped variables. Any ideas how we can get global to see all the scoped variables? jonese ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230366 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54