Working with Files on Remote Servers
21
For example, a user might have a remote drive X:\ mapped to a network shared
directory \\MYSERVER\WEBPROJECTS\ where WEBPROJECTS is the name of the
shared directory in the network server MYSERVER.
In such a scenario, a file that appears to Studio as
X:\App1\index.cfm
might be viewed by the server as
C:\webprojects\App1\index.cfm
and the browser might view it using the URL
path
http://215.180.21.1/App1/index.cfm
In order to resolve the communication between Studio and Server, you must create a
mapping for the App1 directory as follows:
Using UNC paths/Network Neighborhood
Developers can debug code against remote ColdFusion servers across an internal
network using
UNC
paths. They often use the Network Neighborhood to access a file
on a remote server. For example, a developer might access a file on
\\myserver\webprojects\ where webprojects is the name of the shared directory in
the network server myserver.
In such a scenario, a file that appears to Studio as
\\myserver\webprojects\App1\index.cfm
might be viewed by the server as
c:\webprojects\App1\index.cfm
and the browser might view it using the URL
path
http://215.180.21.1/App1/index.cfm
Studio and Server need to understand how a file location appears to the parties
involved. You therefore must create a mapping for the App1 directory as follows:
Studio access to a remote server using drive mappings
Studio path
X:\App1\
Server path
C:\webprojects\App1\
Browser/URL path
http://215.180.21.1/App1/
Studio accesses files on remote server using UNC paths/Network
Neighborhood
Studio path
\\MYSERVER\WEBPROJECTS\App1\
Server path
C:\webprojects\App1\
Browser/URL path
http://215.180.21.1/App1/
Summary of Contents for ColdFusion Server 5
Page 18: ...xviii About This Book...
Page 26: ...8 Chapter 1 Setting Up the Product...
Page 42: ...24 Chapter 2 Configuring Browsers and Servers...
Page 60: ...42 Chapter 3 Exploring the Workspace...
Page 100: ...82 Chapter 6 Editing Pages...
Page 126: ...108 Chapter 7 Using Web Development Languages...
Page 212: ...194 Chapter 13 Customizing the Development Environment...
Page 320: ...302 Glossary...