title: Deploying ServiceStack App to IIS Subfolder under Root
body: <p>I have a simple ServiceStack application that I was able to host as a console app and I'm now wanting to package/deploy it for IIS. </p>
  
  <p>I've created an ASP.Net application project and can successfully run the service on my local machine. When I tried to deploy it to an IIS server (v7.5) in a subfolder under root, I get a 404.</p>
  
  <p>Per the examples and documentation on the ServiceStack site, I set location path web.config setting like this</p>
  
  <pre><code>&lt;location path="api"&gt;
      ...
  &lt;/location&gt;
  </code></pre>
  
  <p>I tried these paths</p>
  
  <pre><code>/api
  /subfolder_name/api
  </code></pre>
  
  <p>but none work.</p>
  
  <p>Is it not possible to have it in a subfolder and have it the path of api?</p>
  
  <p>I have it in a subfolder under the root and have the path config'd like this: . Yet it doesn't work. So does that mean that all of my files have to be under the root and then I have to alter the global.asax to include my apphost init code? Seems a little messy to me.</p>