By putting your files within C:\Inetpub\wwwroot, you’ve
given your Web server access to them. If you’ve been developing Web
pages for a long time, habit may drive you to open files directly in your
browser by double-clicking on the HTML files. Because CFML is a server-side
language, your Web server needs to have a crack at the file before it’s
sent to your browser for display. If the server doesn’t get this opportunity,
the CFML code is not converted into HTML that your browser can understand.
For this reason, CFML files can’t be opened directly from Windows Explorer.
Instead, you need to open them in your browser using the special Web address
that indicates the current computer, http://localhost/. If you try this now,
IIS will open up some HTML help documentation, because we’ve not yet
set up a default Website? This local host name is, in fact, equivalent to
the so-called loop back IP address, 127.0.0.1, IP which you can check out
by entering http://127.0.0.1/ in your browser; you should see the same page
you saw using local host. If you know them, you can also use the name of your
server or the real IP address of your machine to the same effect. Note that
if you do try any of these equivalents, a dialog will appear before the page
is opened, asking for your network credentials, because you’re no longer
using your local authentication implicit with local host.
![]() |
||||||||
![]() |
||||||||
![]() |
||||||||