Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is it possible to save rewrite rules configured on the level of a website to the applicationHost.config, while using IIS Manager? (I know how to do that manually)
By default they are saved to Web.config file.
I need it to get rules deployed to other servers by MSDeploy tool.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Yes it is possible to do this but you won't have all the nice UI features that the URL Rewrite applet has.

On the main features view for your site there's an icon marked "Configuration Editor", double click to open:

enter image description here

There are two drop down boxes named Section and From:.

The Section dropdown allows you to choose which configuration section you want to edit. It opens up a tree view.

The From: dropdown allows you to choose whether to change the setting in the site's web.config file or in a <location> element in the applicationHost.config file:

enter image description here

The UI is driven from the raw schema data stored in:

C:\Windows\System32\inetsrv\config\schema

It's fairly "no-frills" but does expose some configuration elements/attributes that some of the configuration feature applets sometimes don't show.

Even though fairly basic, it's safer to use this on a production server rather than hacking away at applicationHost.config directly because you can be guaranteed that you're putting settings in the right place, using the correct enumeration values and are at less risk from finger trouble.

share|improve this answer
    
I didn't expect that's possible while still being able to use UrlRewrite applet. Thanks for the answer. –  Tomek Feb 24 '12 at 10:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.