I was going to say whar server returned this the ARR (very unlikely) or the back end server but it seenms you know it is the backend server now.
One simple tip is it a) always check where the error is occuring first look atthe logs of each machien for where the error occurs. I also add a HTTP header for all the traffic that goes through ARR something liek X-Server-ARR = <servername>ARR1 etc (And
another one of teh server itself X-Server-web = webserver1, or webserver2, etc) so you can see from in the request in the HTTP headers where your error occurs and on what server (if there is no X-Server_web header it is just on the ARR if it says as well
X-Server-web = webserver3 it is going on the backend web server)
First, make sure your site kunde1 is working locally without any issue. provide web.conifg file of the kunde1. try to assign the proper permission to the web site directory. if you have a URL rewrite rule in the kunde1 config file and you haven't installed
the module yet then install it. enable iis feature based on your application.check the event vier log for more detail.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
If your issue is solved then I request you to mark the helpful suggestion as an answer. This will help other people who face the same issue.
If your issue still exists then try to refer the solution given by the community members.
If then also you have any further questions then let us know about it.
We will try to provide further suggestions to solve the issue.
Thanks for your understanding.
Regards
Jalpa.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
3 Posts
ARR and URL Rewrite question
Oct 07, 2020 09:32 PM|Franz-Georg|LINK
Hi there,
I'm having two identically configured ARR configurations, one is working - one not:
Here the rules configuration:
<rewrite>
<globalRules>
<rule name="App1" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<action type="Rewrite" url="http://App1_Farm/{C:1}" />
<conditions>
<add input="{URL}" pattern="*kunde1" />
</conditions>
</rule>
<rule name="app2" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<action type="Rewrite" url="http://App2_Farm/{C:1}" />
<conditions>
<add input="{URL}" pattern="*kunde2" />
</conditions>
</rule>
</globalRules>
<rewriteMaps>
</rewriteMaps>
</rewrite>
<proxy enabled="true" />
and here the farms configuration:
<webFarms>
<webFarm name="App1_Farm" enabled="true">
<server address="192.168.100.202" enabled="true">
<applicationRequestRouting httpPort="8081" />
</server>
<server address="192.168.100.203" enabled="true">
<applicationRequestRouting httpPort="8081" />
</server>
<server address="192.168.100.204" enabled="true">
<applicationRequestRouting httpPort="8081" />
</server>
<applicationRequestRouting>
<healthCheck url="http://infomaweb.kdo.de:8081" />
<affinity useCookie="false" />
<protocol reverseRewriteHostInResponseHeaders="true" />
</applicationRequestRouting>
</webFarm>
<webFarm name="App2_Farm" enabled="true">
<server address="192.168.100.202" enabled="true">
<applicationRequestRouting httpPort="8082" />
</server>
<server address="192.168.100.203" enabled="true">
<applicationRequestRouting httpPort="8082" />
</server>
<server address="192.168.100.204" enabled="true">
<applicationRequestRouting httpPort="8082" />
</server>
<applicationRequestRouting>
<protocol reverseRewriteHostInResponseHeaders="true" />
</applicationRequestRouting>
</webFarm>
Calling the URL for the first farm - like "http://www.domain.com/kunde1" gives me an http error 500.
Calling the URL for the second farm - like "http://www.domain.com/kunde2" works phantastically.
Any help very welcome!
Yours - Franz-Georg
PS: I already found a hint - it error 500.19 - missing web.config for kunde1 !
So it's no ARR problem - it's a misconfig in one of my sites.
Yours - Franz-Georg
5494 Posts
MVP
Moderator
Re: ARR and URL Rewrite question
Oct 08, 2020 01:33 AM|Rovastar|LINK
I was going to say whar server returned this the ARR (very unlikely) or the back end server but it seenms you know it is the backend server now.
One simple tip is it a) always check where the error is occuring first look atthe logs of each machien for where the error occurs. I also add a HTTP header for all the traffic that goes through ARR something liek X-Server-ARR = <servername>ARR1 etc (And another one of teh server itself X-Server-web = webserver1, or webserver2, etc) so you can see from in the request in the HTTP headers where your error occurs and on what server (if there is no X-Server_web header it is just on the ARR if it says as well X-Server-web = webserver3 it is going on the backend web server)
https://www.leansentry.com/
1616 Posts
Re: ARR and URL Rewrite question
Oct 08, 2020 03:05 AM|Jalpa Panchal|LINK
Hi,
First, make sure your site kunde1 is working locally without any issue. provide web.conifg file of the kunde1. try to assign the proper permission to the web site directory. if you have a URL rewrite rule in the kunde1 config file and you haven't installed the module yet then install it. enable iis feature based on your application.check the event vier log for more detail.
3 Posts
Re: ARR and URL Rewrite question
Oct 08, 2020 04:00 PM|Franz-Georg|LINK
Thanks a lot for your help!
Your hint with the HTTP headers is great!
Sincerely
Franz-Georg
PS: in the meantime everything is working as expected...
3 Posts
Re: ARR and URL Rewrite question
Oct 08, 2020 04:03 PM|Franz-Georg|LINK
Hello Jalpa Panchal,
thanks a lot for your help!
It's always great that so many people are sharing their experiences!
Yours
Franz-Georg
1616 Posts
Re: ARR and URL Rewrite question
Oct 09, 2020 02:18 AM|Jalpa Panchal|LINK
Hi,
Is your issue solved?
If your issue is solved then I request you to mark the helpful suggestion as an answer. This will help other people who face the same issue.
If your issue still exists then try to refer the solution given by the community members.
If then also you have any further questions then let us know about it.
We will try to provide further suggestions to solve the issue.
Thanks for your understanding.
Regards
Jalpa.