Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory Mapping problem 1

Status
Not open for further replies.

calista

Programmer
Jan 24, 2001
545
US
Help! I am in the process of testing a new portion of my intranet. What I have done is "mirrored" my old site with changes. I have two directories on my server, Intranet and NewIntranet. In the Administrator, my directory is mapped to "D:\Intranet\" with no logical path specified, and it has been working fine. What I am trying to do is add a new mapping "D:\NewIntranet\" for testing purposes. The files are all there, but if I type in "http:\\Buzz\NewIntranet\Homepage.cfm", I get "Page not found." If I type "http:\\Buzz\Intranet\Homepage.cfm", it goes right to my home page. I know it's a mapping problem, but how do I do this? If I browse the server for the directory path without specifying a logical path, it overwrites my regular site mapping. If I specify a logical path and a directory path, I get two mappings, but the new one doesn't work. What am I doing wrong? Calista :-X
Jedi Knight,
Champion of the Force
 
Hey Calista,

That's strange, at my last job, our CF dev server was also called "Buzz". Are you a GT fan?

To fix your problem, I think we need to first clear up what you're trying to do. The mappings in the CF admin are used for accessing templates in <cfincludes> and <cfmodule> tags and not for defining paths in browser urls. If you want to have &quot;buzz/newIntranet&quot; display files found in d:\ this needs to be configured inside the webserver admin. If you have <cfincludes> that use mappings to find the templates (ex. <cfinclude template=&quot;/newIntranet/header.inc&quot;>), you will have to have two different mapping for each site. I always define a base template location in my application.cfm file and reference it like this:

<cfinclude template=&quot;#mainLocation#includeFile.cfm&quot;>

This way, I can have multiple copies of a site using different mapping points without changing the code. I just update the master variable to the mapping the app should use and everything goes to the correct location.

Just let me know if I've misunderstood your problem,
GJ
 
Thanks for the info, I'll give it a try. I found a way around my current problem, but I'd still like to figure this out for future reference.

As far as &quot;Buzz&quot; is concerned, his last name is &quot;Lightyear&quot;. Another new server is &quot;Woody&quot;. They were preceded by the characters from &quot;South Park&quot; and &quot;The Simpsons&quot;. Do you see a pattern forming, here? Personally, I would have for &quot;Star Wars&quot; or &quot;The Hobbit&quot; And, if you ever want to know who Calista is, read &quot;Darksaber&quot;.

Thanks a million! Calista :-X
Jedi Knight,
Champion of the Force
 
Hehe, I wasn't even thinking about TS. My little girl used to watch it endlessly when she was 2 :) My wife and I could almost quote the movie all the way through at one point...

GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top