Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

IIS7 ARR - Rule Conflict?

Posted on 2012-09-20
4
Medium Priority
?
660 Views
Last Modified: 2012-09-29
Having an interesting problem.

I've had an IIS ARR set up for reverse proxy purposes for quite some time... it gets static NATed to a public IP address.  All of my rules follow the following format:
Match URL *
Condition: {HTTP_HOST} Matches Pattern www.*
Action: Route to Server Farm http://    WWW    /{R:0}

Or
Match URL *
Condition: {HTTP_HOST} Matches Pattern email.*
Action: Route to Server Farm http://    EMAIL    /{R:0}

Open in new window



First, I can't find the web.config file... it's not in the place that it should be (and a search at the root of the disk for web.config produces no valid results).  Not really a big deal to me as long as it works, but since that means I can't find the actual XML for the rules, it may be the cause of the problem?

Second, and the purpose of this question...

I'm trying to add another Server Farm, I get a warning that the rule is conflicting with another rule.  And yet:
1) The Server Farm is unique (no other server farms reference the back-end webserver)
2) The ARR Rule is matching on a unique HTTP_HOST

I can add the farm without issue, assuming I tell it not to create the rule.

When I create the rule, the ARR stops working entirely.  All of the sites it serves instantly become unavailable, returning an HTTP500 error.  The rule follows the exact same format as the other rules.
0
Comment
Question by:lunanat
  • 3
4 Comments
 
LVL 35

Expert Comment

by:Bembi
ID: 38427027
A single web.config file is in the physical root of the web site. So if your web site points to the physical path D:\mayweb\root\mywebsite, sou finr the web.confi there. Each web site in IIS has a web.config file in his physical root.

Beside this, there is a global.config, which is changed when you change settings on the root of the web server, which affects all websites.

If you don't see the file in the physical path, make sure you see hidden and system files.
You can also click in IIS so the the content. There you should also see a web.config.
If there is no file, the file is created as far as you cahnge a setting in IIS Management, which is stored in this file.

If there is a syntax error in the web.config, the server responds usually with an error 500.
These error may also happen, if the rules you define have invalid parameters.

Where do to set your settings, directly in the files or via the IIS Management?
0
 
LVL 1

Author Comment

by:lunanat
ID: 38428994
Where do to set your settings, directly in the files or via the IIS Management?
I usually manage through the MMC snap-in... generally the only time I open up a config file is when I'm looking at the syntax prior to a bulk entry (has not happened on this server) or when I want to see what the rule "actually" is.

If you don't see the file in the physical path, make sure you see hidden and system files.  You can also click in IIS so the the content. There you should also see a web.config.
If there is no file, the file is created as far as you cahnge a setting in IIS Management, which is stored in this file.
There are none present in the entire c:\inetpub folder (recursively), with hidden and OS files shown.  As a test I created a brand new website on an alternate port (pointed it to a new folder in /inetpub/) and still no configuration files, even for the new site.


If there is a syntax error in the web.config, the server responds usually with an error 500.
These error may also happen, if the rules you define have invalid parameters
The server does respond fine now, however when I use the IIS MMC Snap-In to create a new rule (which I would assume the management GUI would be able to create correct rules?) the server starts issuing 500s for everything.  When I remove the new rule, it starts responding correctly.
0
 
LVL 1

Accepted Solution

by:
lunanat earned 0 total points
ID: 38429243
Okay... so, still cannot find the actual configuration files (global or web.config).

However, doing an export of the config within the IIS Shared Config management did produce a configuration file for me to debug from.

Interestingly, the rule in the GUI was identical to the other rules.

The config export, however, showed a very different story... there was a setting missing that was present in all the others.

To resolve, I created and then disabled the rule (to avoid downtime), edited all of the settings to what they should not have been, applied, then edited all the settings back to what they should have been.  Very strange.  But resolved.
0
 
LVL 1

Author Closing Comment

by:lunanat
ID: 38446881
Problem solved as described.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Integration Management Part 2
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question