Search code examples
iiscoldfusioniis-8cfwheelscoldfusion-11

CFWheels App goes to directory structure instead


I just added a CFwheels site to my IIS 8 and instead of going to the actual page is showing the directory structure on the browser. Any hints on what I should check?


Solution

  • Geo,

    Your problem is the default document settings as Anit has suggested. In the IIS8 control pannel look for a cpl called "default document". It will show a list of documents that are served by "Default" so that when you navigate to something.com/home it actually serves up something.com/home/index.cfm (as an example).

    Make sure you add your desired default document to the list. You can aslo do this in the web.config file:

    <configuration>
       <system.webServer>
          <defaultDocument enabled="true">
             <files>
                <add value="index.cfm" />
             </files>
          </defaultDocument>
       </system.webServer>
    </configuration>
    

    You are correct I think that if it is an Adobe AMI it should have such a setting by default - but perhaps you are not using a standard default doc.

    You probably want to disable directory browsing as well - that's also a cpl I think.