RE: CF Administrator Mapping and Apache Alias
All mappings do is create an alias for a phsyical directory... like say if you wanted an absolute reference for CFINCLUDE you could make a mapping named Foo which points to /usr/home/cftagman/cftags And say you had a lot of templates in /usr/home/cftagman/cftags then you could use and Sometemplate.cfm would of course be in the D:\CFStuff directory. Thats all :) Its purely CF driven and referenced with CF basically its a nice way to map out the absolute location for something. of course NT machines start with drive letters ;) So I would say that a that the Apache alias takes higher precedence than the CF Mapping. Jeremy Allen [EMAIL PROTECTED] [Insert cool title here] -Original Message- From: Peter Theobald [mailto:[EMAIL PROTECTED]] Sent: Monday, August 14, 2000 6:38 PM To: [EMAIL PROTECTED] Subject: CF Administrator Mapping and Apache Alias What exactly does CF Administrator mapping do? Does it map URLs as they come in, in other words it affects ALL http requests even to .html files? Or does it map URLs that are to .cfm files? Or does it only affect CFINCLUDE? How does it interact with Apache directory "Alias" mapping? I want to map certain directories for images and cfm files. I also want a different set of mappings for my CF library of includable "functions" so I can usealthough that file is NOT located under my document root. -- - Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com/" eudora="autourl">http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CF Administrator Mapping and Apache Alias
So you are saying it does not affect URL requests at all, right? It only affects CFINCLUDE? Your example can't be right. You are using the mapping as a variable "#foo#/SomeTemplate.cfm" If that were right, I wouldn't need mapping at all. I would just set a variable. It must be more like this: MAP /cflib = /usr/home/coldfusion/library/peterAt 06:56 PM 8/14/00 -0400, Jeremy Allen wrote: All mappings do is create an alias for a phsyical directory... like say if you wanted an absolute reference for CFINCLUDE you could make a mapping named Foo which points to /usr/home/cftagman/cftags And say you had a lot of templates in /usr/home/cftagman/cftags then you could use and Sometemplate.cfm would of course be in the D:\CFStuff directory. Thats all :) Its purely CF driven and referenced with CF basically its a nice way to map out the absolute location for something. of course NT machines start with drive letters ;) So I would say that a that the Apache alias takes higher precedence than the CF Mapping. Jeremy Allen [EMAIL PROTECTED] [Insert cool title here] -Original Message- From: Peter Theobald [mailto:[EMAIL PROTECTED]" eudora="autourl">mailto:[EMAIL PROTECTED]] Sent: Monday, August 14, 2000 6:38 PM To: [EMAIL PROTECTED] Subject: CF Administrator Mapping and Apache Alias What exactly does CF Administrator mapping do? Does it map URLs as they come in, in other words it affects ALL http requests even to .html files? Or does it map URLs that are to .cfm files? Or does it only affect CFINCLUDE? How does it interact with Apache directory "Alias" mapping? I want to map certain directories for images and cfm files. I also want a different set of mappings for my CF library of includable "functions" so I can use although that file is NOT located under my document root. -- - Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com/" eudora="autourl">http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/" eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk" eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/" eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk" eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. --- Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com/" eudora="autourl">http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CF Administrator Mapping and Apache Alias
Ugh my apologies I was thinking of something else thats what I get for replying while im trying to code ;) They work just like document mappings in apache except, they only refer to application pages. You should only need it for CF with CGi or absolute references with the CFINCLUDE tag ... Apache does document type mapping which lets apache know that a .cfm is a CF File and that it should be procesed by the CF Server. So say you make your mapping /Foo/ which points to D:\CFStuff now from CFincludes you should be able to do And if you dont want it for CFInclude I would just use document type mappings unless you need to do something strange with CGI and CF. Sorry for the inconsistency ;) Jeremy Allen [EMAIL PROTECTED] [Insert cool title here] -Original Message- From: Peter Theobald [mailto:[EMAIL PROTECTED]] Sent: Monday, August 14, 2000 7:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: CF Administrator Mapping and Apache Alias So you are saying it does not affect URL requests at all, right? It only affects CFINCLUDE? Your example can't be right. You are using the mapping as a variable "#foo#/SomeTemplate.cfm" If that were right, I wouldn't need mapping at all. I would just set a variable. It must be more like this: MAP /cflib = /usr/home/coldfusion/library/peter <cfinclude template="/cflib/myfile.cfm"> At 06:56 PM 8/14/00 -0400, Jeremy Allen wrote: All mappings do is create an alias for a phsyical directory... like say if you wanted an absolute reference for CFINCLUDE you could make a mapping named Foo which points to /usr/home/cftagman/cftags And say you had a lot of templates in /usr/home/cftagman/cftags then you could use <CFINCLUDE Template="#foo#/SomeTemplate.cfm"> and Sometemplate.cfm would of course be in the D:\CFStuff directory. Thats all :) Its purely CF driven and referenced with CF basically its a nice way to map out the absolute location for something. of course NT machines start with drive letters ;) So I would say that a that the Apache alias takes higher precedence than the CF Mapping. Jeremy Allen [EMAIL PROTECTED] [Insert cool title here] -Original Message- From: Peter Theobald [mailto:[EMAIL PROTECTED]" eudora="autourl">mailto:[EMAIL PROTECTED]] Sent: Monday, August 14, 2000 6:38 PM To: [EMAIL PROTECTED] Subject: CF Administrator Mapping and Apache Alias What exactly does CF Administrator mapping do? Does it map URLs as they come in, in other words it affects ALL http requests even to .html files? Or does it map URLs that are to .cfm files? Or does it only affect CFINCLUDE? How does it interact with Apache directory "Alias" mapping? I want to map certain directories for images and cfm files. I also want a different set of mappings for my CF library of includable "functions" so I can use <cfinclude template="/cflib/mymodule.cfm"> although that file is NOT located under my document root. -- - Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com/" eudora="autourl">http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/" eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/< br> To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf _talk" eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&bo dy=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/" eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/< br> To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf _talk" eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&bo dy=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- - Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com/" eudora="autourl">http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'uns
RE: CF Administrator Mapping and Apache Alias
Which does not have to be a directory your web server can see. best, paul At 06:56 PM 8/14/00 -0400, you wrote: >All mappings do is create an alias for a phsyical directory... -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CF Administrator Mapping and Apache Alias
How about virtual servers? If I set up a CF mapping, for instance: /includes = /home/httpd/html/docs/www.thissite.com/includes Then do *ALL* sites on that server get the SAME include (to the wrong site in most cases). At 07:09 PM 8/14/00 -0400, Peter Theobald wrote: So you are saying it does not affect URL requests at all, right? It only affects CFINCLUDE? Your example can't be right. You are using the mapping as a variable "#foo#/SomeTemplate.cfm" If that were right, I wouldn't need mapping at all. I would just set a variable. It must be more like this: MAP /cflib = /usr/home/coldfusion/library/peterAt 06:56 PM 8/14/00 -0400, Jeremy Allen wrote: All mappings do is create an alias for a phsyical directory... like say if you wanted an absolute reference for CFINCLUDE you could make a mapping named Foo which points to /usr/home/cftagman/cftags And say you had a lot of templates in /usr/home/cftagman/cftags then you could use and Sometemplate.cfm would of course be in the D:\CFStuff directory. Thats all :) Its purely CF driven and referenced with CF basically its a nice way to map out the absolute location for something. of course NT machines start with drive letters ;) So I would say that a that the Apache alias takes higher precedence than the CF Mapping. Jeremy Allen [EMAIL PROTECTED] [Insert cool title here] -Original Message- From: Peter Theobald [mailto:[EMAIL PROTECTED]" eudora="autourl">mailto:[EMAIL PROTECTED]] Sent: Monday, August 14, 2000 6:38 PM To: [EMAIL PROTECTED] Subject: CF Administrator Mapping and Apache Alias What exactly does CF Administrator mapping do? Does it map URLs as they come in, in other words it affects ALL http requests even to .html files? Or does it map URLs that are to .cfm files? Or does it only affect CFINCLUDE? How does it interact with Apache directory "Alias" mapping? I want to map certain directories for images and cfm files. I also want a different set of mappings for my CF library of includable "functions" so I can use although that file is NOT located under my document root. -- - Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com/" eudora="autourl">http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/" eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk" eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/" eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk" eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. --- Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com/" eudora="autourl">http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/" eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk" eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. --- Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com/" eudora="autourl">http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CF Administrator Mapping and Apache Alias
Short answer - yes. Long answer - Think of physical directories under the web root and virtual directories set up in the web server (thinking of IIS here) as directories to be used in HTML, such as and . Think of CF mappings as only available to CF code, such as and . In fact, in and , if you want an absolute reference (starting with "/"), then you can only use CF mappings. Without CF mappings you must use relative references ("../../", etc.). One nice thing about CF mappings is you can move included CF files out of the web root and then noone can access them via the browser . . . it makes security easier. HTH, Dan -Original Message- From: Peter Theobald [mailto:[EMAIL PROTECTED]] Sent: Monday, August 14, 2000 5:35 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: CF Administrator Mapping and Apache Alias How about virtual servers? If I set up a CF mapping, for instance: /includes = /home/httpd/html/docs/www.thissite.com/includes Then do *ALL* sites on that server get the SAME include (to the wrong site in most cases). At 07:09 PM 8/14/00 -0400, Peter Theobald wrote: So you are saying it does not affect URL requests at all, right? It only affects CFINCLUDE? Your example can't be right. You are using the mapping as a variable "#foo#/SomeTemplate.cfm" If that were right, I wouldn't need mapping at all. I would just set a variable. It must be more like this: MAP /cflib = /usr/home/coldfusion/library/peter <cfinclude template="/cflib/myfile.cfm"> At 06:56 PM 8/14/00 -0400, Jeremy Allen wrote: All mappings do is create an alias for a phsyical directory... like say if you wanted an absolute reference for CFINCLUDE you could make a mapping named Foo which points to /usr/home/cftagman/cftags And say you had a lot of templates in /usr/home/cftagman/cftags then you could use <CFINCLUDE Template="#foo#/SomeTemplate.cfm"> and Sometemplate.cfm would of course be in the D:\CFStuff directory. Thats all :) Its purely CF driven and referenced with CF basically its a nice way to map out the absolute location for something. of course NT machines start with drive letters ;) So I would say that a that the Apache alias takes higher precedence than the CF Mapping. Jeremy Allen [EMAIL PROTECTED] [Insert cool title here] -Original Message- From: Peter Theobald [mailto:[EMAIL PROTECTED]" eudora="autourl">mailto:[EMAIL PROTECTED]] Sent: Monday, August 14, 2000 6:38 PM To: [EMAIL PROTECTED] Subject: CF Administrator Mapping and Apache Alias What exactly does CF Administrator mapping do? Does it map URLs as they come in, in other words it affects ALL http requests even to .html files? Or does it map URLs that are to .cfm files? Or does it only affect CFINCLUDE? How does it interact with Apache directory "Alias" mapping? I want to map certain directories for images and cfm files. I also want a different set of mappings for my CF library of includable "functions" so I can use <cfinclude template="/cflib/mymodule.cfm"> although that file is NOT located under my document root. -- - Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com/" eudora="autourl">http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/" eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/< br> To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf _talk" eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&bo dy=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/" eudora="autourl">http://www.mail-archive.com/cf-talk@houseoffusion.com/< br> To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf _talk" eudora="autourl">http://www.houseoffusion.com/index.cfm?sidebar=lists&bo dy=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. ---< br> Peter Theobald, Chief Technology Officer LiquidStreaming http://www.liquidstreaming.com/" eudora="autourl">http://www.liquidstreaming.com [EMAIL PROTECTED] Phone 1.212.545.1232 Fax 1.212.679.8032 -- Archives: http://www.mail-archi
RE: CF Administrator Mapping and Apache Alias
Well, in this case I have: 1) a live production site 2) a staging/testing site 3) a development site All as virtual server on one physical server. In Apache I can map virtual directories so each site has a different images directory for example. But in the Cold Fusion Administrator I cannot map different INCLUDE roots for each virtual site. I store my libraries of CF modules in a directory that I want to use absolute references to for convenience and security. But I cannot have developers working and testing on these libraries if I cannot map different directories for the live, staging, and development virtual servers. They all share ONE directory! That means back to relative paths or setting up two more servers :-( At 07:04 PM 8/14/00 -0700, Dan Haley wrote: >Short answer - yes. > >Long answer - Think of physical directories under the web root and virtual >directories set up in the web server (thinking of IIS here) as directories >to be used in HTML, such as and . Think of CF >mappings as only available to CF code, such as and . >In fact, in and , if you want an absolute reference >(starting with "/"), then you can only use CF mappings. Without CF mappings >you must use relative references ("../../", etc.). One nice thing about CF >mappings is you can move included CF files out of the web root and then >noone can access them via the browser . . . it makes security easier. > >HTH, >Dan > >-Original Message- >From: Peter Theobald [mailto:[EMAIL PROTECTED]] >Sent: Monday, August 14, 2000 5:35 PM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; >[EMAIL PROTECTED] >Subject: RE: CF Administrator Mapping and Apache Alias > > >How about virtual servers? >If I set up a CF mapping, for instance: /includes = >/home/httpd/html/docs/www.thissite.com/includes >Then do *ALL* sites on that server get the SAME include (to the wrong site in most >cases). > > >At 07:09 PM 8/14/00 -0400, Peter Theobald wrote: >>So you are saying it does not affect URL requests at all, right? >>It only affects CFINCLUDE? >> >>Your example can't be right. You are using the mapping as a variable >"#foo#/SomeTemplate.cfm" >>If that were right, I wouldn't need mapping at all. I would just set a variable. >>It must be more like this: >> >>MAP /cflib = /usr/home/coldfusion/library/peter >> >> >> >> >>At 06:56 PM 8/14/00 -0400, Jeremy Allen wrote: >>>All mappings do is create an alias for a phsyical directory... >>> >>>like say if you wanted an absolute reference for CFINCLUDE >>> >>>you could make a mapping named Foo which points to /usr/home/cftagman/cftags >>> >>>And say you had a lot of templates in /usr/home/cftagman/cftags then you >>>could use >>> >>> and Sometemplate.cfm >>>would of course be in the D:\CFStuff directory. >>> >>>Thats all :) >>> >>>Its purely CF driven and referenced with CF basically its a nice >>>way to map out the absolute location for something. of course >>>NT machines start with drive letters ;) So I would say that a >>>that the Apache alias takes higher precedence than the CF >>>Mapping. >>> >>>Jeremy Allen >>>[EMAIL PROTECTED] >>>[Insert cool title here] >>> >>> >>>-Original Message- >>>From: Peter Theobald [mailto:[EMAIL PROTECTED]] >>>Sent: Monday, August 14, 2000 6:38 PM >>>To: [EMAIL PROTECTED] >>>Subject: CF Administrator Mapping and Apache Alias >>> >>> >>>What exactly does CF Administrator mapping do? >>>Does it map URLs as they come in, in other words it affects ALL http requests even >to .html files? >>>Or does it map URLs that are to .cfm files? >>>Or does it only affect CFINCLUDE? >>> >>>How does it interact with Apache directory "Alias" mapping? >>> >>>I want to map certain directories for images and cfm files. I also want a different >set of mappings for my CF library of includable "functions" so I can use template="/cflib/mymodule.cfm"> although that file is NOT located under my document >root. >>> >>> >>> >>>-- - >>>Peter Theobald, Chief Technology Officer >>>LiquidStreaming http://www.liquidstreaming.com >>>[EMAIL PROTECTED] >>>Phone 1.212.545.1232 Fax 1.212.679.8032 >>> >>> >>>-- >>>Archives
RE: CF Administrator Mapping and Apache Alias
How about this . . . set up three CF mappings . . . includes_prod, includes_test, and includes_dev . . . or names of your choice, of course! . . . and then in your application.cfm set a variable to the appropriate mapping depending on the cgi.server_name . . . . . . and then you would include the right file . . . Dan -Original Message- From: Peter Theobald [mailto:[EMAIL PROTECTED]] Sent: Monday, August 14, 2000 6:59 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: CF Administrator Mapping and Apache Alias Well, in this case I have: 1) a live production site 2) a staging/testing site 3) a development site All as virtual server on one physical server. In Apache I can map virtual directories so each site has a different images directory for example. But in the Cold Fusion Administrator I cannot map different INCLUDE roots for each virtual site. I store my libraries of CF modules in a directory that I want to use absolute references to for convenience and security. But I cannot have developers working and testing on these libraries if I cannot map different directories for the live, staging, and development virtual servers. They all share ONE directory! That means back to relative paths or setting up two more servers :-( At 07:04 PM 8/14/00 -0700, Dan Haley wrote: >Short answer - yes. > >Long answer - Think of physical directories under the web root and virtual >directories set up in the web server (thinking of IIS here) as directories >to be used in HTML, such as and . Think of CF >mappings as only available to CF code, such as and . >In fact, in and , if you want an absolute reference >(starting with "/"), then you can only use CF mappings. Without CF mappings >you must use relative references ("../../", etc.). One nice thing about CF >mappings is you can move included CF files out of the web root and then >noone can access them via the browser . . . it makes security easier. > >HTH, >Dan > >-Original Message- >From: Peter Theobald [mailto:[EMAIL PROTECTED]] >Sent: Monday, August 14, 2000 5:35 PM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; >[EMAIL PROTECTED] >Subject: RE: CF Administrator Mapping and Apache Alias > > >How about virtual servers? >If I set up a CF mapping, for instance: /includes = /home/httpd/html/docs/www.thissite.com/includes >Then do *ALL* sites on that server get the SAME include (to the wrong site in most cases). > > >At 07:09 PM 8/14/00 -0400, Peter Theobald wrote: >>So you are saying it does not affect URL requests at all, right? >>It only affects CFINCLUDE? >> >>Your example can't be right. You are using the mapping as a variable "#foo#/SomeTemplate.cfm" >>If that were right, I wouldn't need mapping at all. I would just set a variable. >>It must be more like this: >> >>MAP /cflib = /usr/home/coldfusion/library/peter >> >> >> >> >>At 06:56 PM 8/14/00 -0400, Jeremy Allen wrote: >>>All mappings do is create an alias for a phsyical directory... >>> >>>like say if you wanted an absolute reference for CFINCLUDE >>> >>>you could make a mapping named Foo which points to /usr/home/cftagman/cftags >>> >>>And say you had a lot of templates in /usr/home/cftagman/cftags then you >>>could use >>> >>> and Sometemplate.cfm >>>would of course be in the D:\CFStuff directory. >>> >>>Thats all :) >>> >>>Its purely CF driven and referenced with CF basically its a nice >>>way to map out the absolute location for something. of course >>>NT machines start with drive letters ;) So I would say that a >>>that the Apache alias takes higher precedence than the CF >>>Mapping. >>> >>>Jeremy Allen >>>[EMAIL PROTECTED] >>>[Insert cool title here] >>> >>> >>>-Original Message- >>>From: Peter Theobald [mailto:[EMAIL PROTECTED]] >>>Sent: Monday, August 14, 2000 6:38 PM >>>To: [EMAIL PROTECTED] >>>Subject: CF Administrator Mapping and Apache Alias >>> >>> >>>What exactly does CF Administrator mapping do? >>>Does it map URLs as they come in, in other words it affects ALL http requests even to .html files? >>>Or does it map URLs that are to .cfm files? >>>Or does it only affect CFINCLUDE? >>> >>>How does it interact with Apache directory "Alias" mapping? >>> >>>I want to map certain directories for images and cfm files. I also want a different set of mappings for my CF library of includable "functions" so I can use although that file is NOT located under my document root. &g
RE: CF Administrator Mapping and Apache Alias
Kinda' makes mapping useless in this particular case. Yes, I could use the cgi.server_name to figure it out. That works for me. At 09:11 PM 8/14/00 -0700, Dan Haley wrote: > >How about this . . . set up three CF mappings . . . includes_prod, >includes_test, and includes_dev . . . or names of your choice, of course! . >. . and then in your application.cfm set a variable to the appropriate >mapping depending on the cgi.server_name . . . = "/includes_prod"> . . . and then you would include the right file . . . > > > >Dan > >-Original Message- >From: Peter Theobald [mailto:[EMAIL PROTECTED]] >Sent: Monday, August 14, 2000 6:59 PM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: RE: CF Administrator Mapping and Apache Alias > > >Well, in this case I have: >1) a live production site >2) a staging/testing site >3) a development site > >All as virtual server on one physical server. In Apache I can map virtual >directories so each site has a different images directory for example. But >in the Cold Fusion Administrator I cannot map different INCLUDE roots for >each virtual site. I store my libraries of CF modules in a directory that I >want to use absolute references to for convenience and security. But I >cannot have developers working and testing on these libraries if I cannot >map different directories for the live, staging, and development virtual >servers. They all share ONE directory! >That means back to relative paths or setting up two more servers :-( > > >At 07:04 PM 8/14/00 -0700, Dan Haley wrote: >>Short answer - yes. >> >>Long answer - Think of physical directories under the web root and virtual >>directories set up in the web server (thinking of IIS here) as directories >>to be used in HTML, such as and . Think of CF >>mappings as only available to CF code, such as and . >>In fact, in and , if you want an absolute reference >>(starting with "/"), then you can only use CF mappings. Without CF >mappings >>you must use relative references ("../../", etc.). One nice thing about CF >>mappings is you can move included CF files out of the web root and then >>noone can access them via the browser . . . it makes security easier. >> >>HTH, >>Dan >> >>-Original Message- >>From: Peter Theobald [mailto:[EMAIL PROTECTED]] >>Sent: Monday, August 14, 2000 5:35 PM >>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; >>[EMAIL PROTECTED] >>Subject: RE: CF Administrator Mapping and Apache Alias >> >> >>How about virtual servers? >>If I set up a CF mapping, for instance: /includes = >/home/httpd/html/docs/www.thissite.com/includes >>Then do *ALL* sites on that server get the SAME include (to the wrong site >in most cases). >> >> >>At 07:09 PM 8/14/00 -0400, Peter Theobald wrote: >>>So you are saying it does not affect URL requests at all, right? >>>It only affects CFINCLUDE? >>> >>>Your example can't be right. You are using the mapping as a variable >"#foo#/SomeTemplate.cfm" >>>If that were right, I wouldn't need mapping at all. I would just set a >variable. >>>It must be more like this: >>> >>>MAP /cflib = /usr/home/coldfusion/library/peter >>> >>> >>> >>> >>>At 06:56 PM 8/14/00 -0400, Jeremy Allen wrote: >>>>All mappings do is create an alias for a phsyical directory... >>>> >>>>like say if you wanted an absolute reference for CFINCLUDE >>>> >>>>you could make a mapping named Foo which points to >/usr/home/cftagman/cftags >>>> >>>>And say you had a lot of templates in /usr/home/cftagman/cftags then you >>>>could use >>>> >>>> and Sometemplate.cfm >>>>would of course be in the D:\CFStuff directory. >>>> >>>>Thats all :) >>>> >>>>Its purely CF driven and referenced with CF basically its a nice >>>>way to map out the absolute location for something. of course >>>>NT machines start with drive letters ;) So I would say that a >>>>that the Apache alias takes higher precedence than the CF >>>>Mapping. >>>> >>>>Jeremy Allen >>>>[EMAIL PROTECTED] >>>>[Insert cool title here] >>>> >>>> >>>>-Original Message- >>>>From: Peter Theobald [mailto:[EMAIL PROTECTED]] >>>>Sent: Monday, August 14, 2000 6:38 PM >>>>To: [EMAIL PROTECTED] >>>>Subject: CF Administrator Ma
RE: CF Administrator Mapping and Apache Alias
Yeah, guess you're right . . . damn, hate it when I'm on the road and the brain stays at work . . . :) . . . but your point makes sense, what is the difference between a mapping and setting a variable? Really none . . . . . . or maybe not . . . haha . . . anyone else on cf-talk down at the Motorola Developer's Conference? Dan -Original Message- From: Peter Theobald [mailto:[EMAIL PROTECTED]] Sent: Monday, August 14, 2000 9:33 PM To: Dan Haley; [EMAIL PROTECTED] Subject: RE: CF Administrator Mapping and Apache Alias Kinda' makes mapping useless in this particular case. Yes, I could use the cgi.server_name to figure it out. That works for me. At 09:11 PM 8/14/00 -0700, Dan Haley wrote: > >How about this . . . set up three CF mappings . . . includes_prod, >includes_test, and includes_dev . . . or names of your choice, of course! . >. . and then in your application.cfm set a variable to the appropriate >mapping depending on the cgi.server_name . . . = "/includes_prod"> . . . and then you would include the right file . . . > > > >Dan > >-Original Message- >From: Peter Theobald [mailto:[EMAIL PROTECTED]] >Sent: Monday, August 14, 2000 6:59 PM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: RE: CF Administrator Mapping and Apache Alias > > >Well, in this case I have: >1) a live production site >2) a staging/testing site >3) a development site > >All as virtual server on one physical server. In Apache I can map virtual >directories so each site has a different images directory for example. But >in the Cold Fusion Administrator I cannot map different INCLUDE roots for >each virtual site. I store my libraries of CF modules in a directory that I >want to use absolute references to for convenience and security. But I >cannot have developers working and testing on these libraries if I cannot >map different directories for the live, staging, and development virtual >servers. They all share ONE directory! >That means back to relative paths or setting up two more servers :-( > > >At 07:04 PM 8/14/00 -0700, Dan Haley wrote: >>Short answer - yes. >> >>Long answer - Think of physical directories under the web root and virtual >>directories set up in the web server (thinking of IIS here) as directories >>to be used in HTML, such as and . Think of CF >>mappings as only available to CF code, such as and . >>In fact, in and , if you want an absolute reference >>(starting with "/"), then you can only use CF mappings. Without CF >mappings >>you must use relative references ("../../", etc.). One nice thing about CF >>mappings is you can move included CF files out of the web root and then >>noone can access them via the browser . . . it makes security easier. >> >>HTH, >>Dan >> >>-Original Message- >>From: Peter Theobald [mailto:[EMAIL PROTECTED]] >>Sent: Monday, August 14, 2000 5:35 PM >>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; >>[EMAIL PROTECTED] >>Subject: RE: CF Administrator Mapping and Apache Alias >> >> >>How about virtual servers? >>If I set up a CF mapping, for instance: /includes = >/home/httpd/html/docs/www.thissite.com/includes >>Then do *ALL* sites on that server get the SAME include (to the wrong site >in most cases). >> >> >>At 07:09 PM 8/14/00 -0400, Peter Theobald wrote: >>>So you are saying it does not affect URL requests at all, right? >>>It only affects CFINCLUDE? >>> >>>Your example can't be right. You are using the mapping as a variable >"#foo#/SomeTemplate.cfm" >>>If that were right, I wouldn't need mapping at all. I would just set a >variable. >>>It must be more like this: >>> >>>MAP /cflib = /usr/home/coldfusion/library/peter >>> >>> >>> >>> >>>At 06:56 PM 8/14/00 -0400, Jeremy Allen wrote: >>>>All mappings do is create an alias for a phsyical directory... >>>> >>>>like say if you wanted an absolute reference for CFINCLUDE >>>> >>>>you could make a mapping named Foo which points to >/usr/home/cftagman/cftags >>>> >>>>And say you had a lot of templates in /usr/home/cftagman/cftags then you >>>>could use >>>> >>>> and Sometemplate.cfm >>>>would of course be in the D:\CFStuff directory. >>>> >>>>Thats all :) >>>> >>>>Its purely CF driven and referenced with CF basically its a nice >>>>way to map out the absolute location for something. of course >>>>NT machines start with drive letters ;)