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

We have a IIS7 on Windows Server 2008. It is hosting a handful of sites, on a handful of ip addresses. 2 of those sites are actually wildcards on the domain:

*.firstdomain.com
*.seconddomain.com

However, I am finding that any URL Rewrite rules I add for one of these "websites", is automatically in the URL Rewrite section for the other. Similarly, if I disable the rule in in one, it disables in the other.

This doesn't happen with the other sites defined on this server, just these two. I look at the parent (top level, the server as a whole), and the rule is not there. Any idea what's going on here?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I discovered what was going on here. I hadn't mentioned in my question that the base-folder for both of the websites above was the same - the two different domains host the same apps as each other, they just have different white labels. I didn't realize these re-write rules were saved by writing them to the web.config - instead, I thought they were saved in some other IIS7 config file independent of the site itself. So, since they are sharing base folders, they were sharing webconfigs, which meant they were sharing rules.

share|improve this answer
add comment

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.