🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / React Next Js / IIS ARR Üzerinde HTTPS Yönlendirmesi ve Node.js Reverse Proxy Yapılandırması

1-) React Next Js  - IIS ARR Üzerinde HTTPS Yönlendirmesi ve Node.js Reverse Proxy Yapılandırması

 

1. aar indir kur servera windows iis için

https://www.iis.net/downloads/microsoft/application-request-routing?utm_source=chatgpt.com

ve URL rewrite kurulu olmalı iis de
https://www.iis.net/downloads/microsoft/url-rewrite?utm_source=chatgpt.com

 

2. web.config koysan sadece inetpub a yeterli. site new site diyim ssl li kurabilirsin. nodejs portuna yonlendırcen nextjs portuna aşağıdadır. 8555 port ornek

 

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

  <system.webServer>

 

    <rewrite>

      <rules>

 

        <!-- HTTP -> HTTPS yonlendirmesi -->

        <rule name="HTTP to HTTPS" stopProcessing="true">

          <match url="(.*)" />

          <conditions>

            <add input="{HTTPS}" pattern="off" ignoreCase="true" />

          </conditions>

          <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />

        </rule>

 

        <!-- HTTPS -> localhost:8555 reverse proxy -->

        <rule name="ReverseProxy to Node" stopProcessing="true">

          <match url="(.*)" />

          <action type="Rewrite" url="http://127.0.0.1:8555/{R:1}" appendQueryString="true" />

        </rule>

 

      </rules>

    </rewrite>

 

    <proxy enabled="true" preserveHostHeader="true" reverseRewriteHostInResponseHeaders="false" />

 

    <!-- Performans -->

    <httpProtocol allowKeepAlive="true" />

    <urlCompression doStaticCompression="true" doDynamicCompression="true" />

 

    <!-- WebSocket (varsa sorun yaşamazsın) -->

    <webSocket enabled="true" />

 

  </system.webServer>

</configuration>>

 

 

 2026 Nisan 22 Çarşamba
 0