We help IT Professionals succeed at work.

Is the Web.Config Required When Running Coldfuision 9 on IIS 7?

We are hosting a windows website using Coldfusion 9 Enterprise.
We use Microsoft IIS7.
Is the web.config file required to run my web application?
In the past I haven't had to use web.config and was wondering if I can work without it on IIS7 and Coldfusion.

Comment
Watch Question

Author

Commented:
That link has no mention of the web.config file.

Do you know if the answer to my question is yes or no?

CERTIFIED EXPERT

Commented:
Web.config is for asp.net apps http://en.wikipedia.org/wiki/Web.config and is not needed (or rather you don't need to mess with it) to run CF

Author

Commented:
Thanks Sid that's what I thought.
But can I safely delete it witout messing up IIS.
The only code currently in the web.config file is to remove the 'index.cfm' from the url. (I think)

<system.webServer>
        <defaultDocument>
            <files>
                <remove value="index.cfm" />
            </files>
        </defaultDocument>
    </system.webServer>

CERTIFIED EXPERT
Commented:
I'm -pretty sure- you can (as long as you don't need asp.net) but I'd make a back up copy just in case.

Author

Commented:
Thank You
CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
(no points... I'm not an IIS expert)

Just curious - why do you want to delete it? Is it causing problems?

> is to remove the 'index.cfm' from the url. (I think)

This says it removes "index.cfm" as a default document for whatever site/app the web.config applies to:
http://www.iis.net/ConfigReference/system.webServer/defaultDocument
http://msdn.microsoft.com/en-us/library/bb763179.aspx
 

Author

Commented:
@agx - Thanks for your reply agx.
We had our site go down because according to our network admin. Someone wrote to the web.config file.

If we don't actually need it, it would be safer just to get rid of it. We don't use Dot Net so it problably shouldn't even be in our webroot.  I know IIS6 does not require it but the network guru told me that it is required because we upgraded to IIS7.
CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
> Someone wrote to the web.config file.

Hm.. wrote what I wonder?  Maybe they added some malformed xml?

I'd agree with Sid. It's probably not required when you're not running asp/.net apps.  I have a local machine running CF only and I don't see any web.config files at all.  Since your file is mostly empty, and you don't use .net anyway, it seems like you could try it.  Make a backup first of course! If the files required by IIS you'll find out in short order. But I don't think so.
CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
>> I have a local machine running CF only

.. using IIS 7

Explore More ContentExplore courses, solutions, and other research materials related to this topic.