Answer the question
In order to leave comments, you need to log in
Reverse proxy not working on IIS, how to win?
Hello! I set up a reverse proxy according to this instruction , everything is ok at all stages, except for the proxy itself.
For the place of redefinition, I get a redirect to the root of the site with the code 302. I
created a directory in the root of the website, and in this directory in the Web.config file
Microsoft-IIS / 8.5
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" enabled="true" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://192.168.0.10/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
GET https://office.my-web-site.ru/drive HTTP/1.1
Host: office.my-web-site..ru
Connection: keep-alive
DNT: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: ru-RU,ru;q=0.9
HTTP/1.1 302 Moved Temporarily
Keep-Alive: timeout=20
Content-Length: 138
Content-Type: text/html
Location: https://office.my-web-site.ru/
Server: Microsoft-IIS/8.5
X-Powered-By: ARR/3.0
X-Powered-By: ASP.NET
Date: Sat, 24 Oct 2020 12:28:58 GMT
#Software: Microsoft Internet Information Services 8.5
#Version: 1.0
#Date: 2020-10-24 13:16:22
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2020-10-24 13:29:27 192.168.0.100 GET /drive X-ARR-CACHE-HIT=0&X-ARR-LOG-ID=1c5e54ce-e917-4021-abd8-cca076c30065&SERVER-STATUS=302 443 - 192.168.0.100 Mozilla/5.0+(Windows+NT+6.3;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/85.0.4183.121+Safari/537.36+OPR/71.0.3770.284 - 302 0 0 28
2020-10-24 13:29:27 192.168.0.100 GET / - 443 - 192.168.0.100 Mozilla/5.0+(Windows+NT+6.3;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/85.0.4183.121+Safari/537.36+OPR/71.0.3770.284 - 200 0 0 0
2020-10-24 13:29:27 192.168.0.100 GET /iis-85.png - 443 - 192.168.0.100 Mozilla/5.0+(Windows+NT+6.3;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/85.0.4183.121+Safari/537.36+OPR/71.0.3770.284 https://office.my-web-site.ru/ 200 0 0 47
2020-10-24 13:29:27 192.168.0.100 GET /favicon.ico - 443 - 192.168.0.100 Mozilla/5.0+(Windows+NT+6.3;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/85.0.4183.121+Safari/537.36+OPR/71.0.3770.284 https://office.my-web-site.ru/ 404 0 2 0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question