title: ColdFusion 2018: How to setup a mapping correctly?
body: <p>These are the steps I use:</p>
  
  <p>1) I created new mapping inside CF Server => Server Settings => Mapping</p>
  
  <pre><code>logical path: /mysite
  directory path: /Volumes/drive2/work/mysite
  </code></pre>
  
  <p>2) I restarted the server</p>
  
  <pre><code>/Applications/ColdFusion2018/cfusion/bin/coldfusion stop &amp;&amp; /Applications/ColdFusion2018/cfusion/bin/coldfusion start
  </code></pre>
  
  <p>3) Using my preferred text editor, I created test.cfm inside /Volumes/drive2/work/mysite with the following contents</p>
  
  <pre><code>&lt;cfdump var="#CGI#"&gt;
  </code></pre>
  
  <p>4) I then tried viewing the new file on my browser via</p>
  
  <pre><code>localhost:8500/mysite/test.cfm
  </code></pre>
  
  <p>I then get a 404 error. Exact message goes like "coldfusion.runtime.TemplateNotFoundException: File not found: /mysite/test.cfm"</p>
  
  <p>I checked these 2 things:</p>
  
  <ol>
  <li>I verified that /Volumes/drive2/work/mysite is readable by everyone (755 permission)</li>
  <li>I verified that /Volumes/drive2/work/mysite/test.cfm  is readable by everyone (644 permission)</li>
  </ol>
  
  <p>Other than creating the mapping, the other configurations I've changed are:</p>
  
  <ol>
  <li>created datasource for my app</li>
  <li>Enabled debugging/logging but only after I got the first 404 error</li>
  </ol>
  
  <p>Any ideas what I could be doing wrong? or perhaps other settings I should've set? I've added a screenshot of the mappings section below.</p>
  
  <p>Thanks!</p>
  
  <p><strong>Edit:</strong> I'm using the built-in webserver provided by the standalone/developer edition. I'm also using localhost.</p>
  
  <p><a href="https://i.stack.imgur.com/DxwS5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DxwS5.png" alt="enter image description here"></a></p>