Quantcast
Channel: Admins Goodies » web-config
Viewing all articles
Browse latest Browse all 10

Is it possible to set these IIS7 settings in a web.config file?

$
0
0

Question

with my IIS7 site, i manually set the bindings for my site. Here’s an example screenshot.

alt text

Is it possible to set these bindings in the (local) web.config file? Not a machine or app config file … but the web.config file?

Cheers :)

Answer

You cannot. The system.webServer settings are supposed to be stored in applicationhost.config file only. web.config can have site specific changes or modification but Web site specific configuration are always stored in applicationhost.config. are element and are in turn element.

From IIS 7 Resource Kit:

ApplicationHost.config contains
configuration sections and settings
that only make sense globally on the
server. For example, it contains site,
application, and virtual directory
definitions in the section and
the application pool definitions for
the section.


Viewing all articles
Browse latest Browse all 10

Trending Articles