<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>It doesn't work if the originating url is https:// but does if it
      is http:// <br>
    </p>
    <div class="moz-cite-prefix">On 9/19/22 12:46, Eric Germann via
      nginx wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:sig.92619e33c8.77BDF1C7-DB36-47B6-8EEA-F07E9BC1287F@semperen.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Do you have https: at the front of the URL instead of http:?<br
        class="">
      <div class="">
        <meta charset="UTF-8" class="">
        <div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0,
          0, 0); letter-spacing: normal; text-align: start; text-indent:
          0px; text-transform: none; white-space: normal; word-spacing:
          0px; -webkit-text-stroke-width: 0px; text-decoration: none;
          word-wrap: break-word; -webkit-nbsp-mode: space; line-break:
          after-white-space;" class="">
          <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
            rgb(0, 0, 0); letter-spacing: normal; text-align: start;
            text-indent: 0px; text-transform: none; white-space: normal;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;
            text-decoration: none; word-wrap: break-word;
            -webkit-nbsp-mode: space; line-break: after-white-space;"
            class="">
            <div dir="auto" style="text-align: start; text-indent: 0px;
              word-wrap: break-word; -webkit-nbsp-mode: space;
              line-break: after-white-space;" class="">
              <div dir="auto" style="text-align: start; text-indent:
                0px; word-wrap: break-word; -webkit-nbsp-mode: space;
                line-break: after-white-space;" class="">
                <div dir="auto" style="text-align: start; text-indent:
                  0px; word-wrap: break-word; -webkit-nbsp-mode: space;
                  line-break: after-white-space;" class="">
                  <div dir="auto" style="text-align: start; text-indent:
                    0px; word-wrap: break-word; -webkit-nbsp-mode:
                    space; line-break: after-white-space;" class="">
                    <div dir="auto" style="text-align: start;
                      text-indent: 0px; word-wrap: break-word;
                      -webkit-nbsp-mode: space; line-break:
                      after-white-space;" class="">
                      <div dir="auto" style="text-align: start;
                        text-indent: 0px; word-wrap: break-word;
                        -webkit-nbsp-mode: space; line-break:
                        after-white-space;" class="">
                        <div dir="auto" style="text-align: start;
                          text-indent: 0px; word-wrap: break-word;
                          -webkit-nbsp-mode: space; line-break:
                          after-white-space;" class="">
                          <div dir="auto" style="text-align: start;
                            text-indent: 0px; word-wrap: break-word;
                            -webkit-nbsp-mode: space; line-break:
                            after-white-space;" class="">
                            <div dir="auto" style="text-align: start;
                              text-indent: 0px; word-wrap: break-word;
                              -webkit-nbsp-mode: space; line-break:
                              after-white-space;" class="">
                              <div dir="auto" style="text-align: start;
                                text-indent: 0px; word-wrap: break-word;
                                -webkit-nbsp-mode: space; line-break:
                                after-white-space;" class="">
                                <div dir="auto" style="text-align:
                                  start; text-indent: 0px; word-wrap:
                                  break-word; -webkit-nbsp-mode: space;
                                  line-break: after-white-space;"
                                  class="">
                                  <div dir="auto" style="text-align:
                                    start; text-indent: 0px; word-wrap:
                                    break-word; -webkit-nbsp-mode:
                                    space; line-break:
                                    after-white-space;" class="">
                                    <div dir="auto" style="text-align:
                                      start; text-indent: 0px;
                                      word-wrap: break-word;
                                      -webkit-nbsp-mode: space;
                                      line-break: after-white-space;"
                                      class="">
                                      <div dir="auto" style="text-align:
                                        start; text-indent: 0px;
                                        word-wrap: break-word;
                                        -webkit-nbsp-mode: space;
                                        line-break: after-white-space;"
                                        class="">
                                        <div dir="auto"
                                          style="text-align: start;
                                          text-indent: 0px; word-wrap:
                                          break-word; -webkit-nbsp-mode:
                                          space; line-break:
                                          after-white-space;" class="">
                                          <div dir="auto"
                                            style="text-align: start;
                                            text-indent: 0px; word-wrap:
                                            break-word;
                                            -webkit-nbsp-mode: space;
                                            line-break:
                                            after-white-space;" class="">
                                            <div dir="auto"
                                              style="text-align: start;
                                              text-indent: 0px;
                                              word-wrap: break-word;
                                              -webkit-nbsp-mode: space;
                                              line-break:
                                              after-white-space;"
                                              class="">
                                              <div dir="auto"
                                                style="text-align:
                                                start; text-indent: 0px;
                                                word-wrap: break-word;
                                                -webkit-nbsp-mode:
                                                space; line-break:
                                                after-white-space;"
                                                class="">
                                                <div dir="auto"
                                                  style="text-align:
                                                  start; text-indent:
                                                  0px; word-wrap:
                                                  break-word;
                                                  -webkit-nbsp-mode:
                                                  space; line-break:
                                                  after-white-space;"
                                                  class="">
                                                  <div dir="auto"
                                                    style="text-align:
                                                    start; text-indent:
                                                    0px; word-wrap:
                                                    break-word;
                                                    -webkit-nbsp-mode:
                                                    space; line-break:
                                                    after-white-space;"
                                                    class="">
                                                    <div dir="auto"
                                                      style="text-align:
                                                      start;
                                                      text-indent: 0px;
                                                      word-wrap:
                                                      break-word;
                                                      -webkit-nbsp-mode:
                                                      space; line-break:
after-white-space;" class="">
                                                      <div dir="auto"
                                                        style="text-align:
                                                        start;
                                                        text-indent:
                                                        0px; word-wrap:
                                                        break-word;
                                                        -webkit-nbsp-mode:
                                                        space;
                                                        line-break:
                                                        after-white-space;"
                                                        class="">
                                                        <div dir="auto"
style="text-align: start; text-indent: 0px; word-wrap: break-word;
                                                          -webkit-nbsp-mode:
                                                          space;
                                                          line-break:
                                                          after-white-space;"
                                                          class="">
                                                          <div
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;
                                                          font-family:
                                                          Helvetica;
                                                          font-style:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          font-size:
                                                          15px;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;"><span
                                                          style="font-family:
InputMono-Regular;" class=""><br class="Apple-interchange-newline">
                                                          ---</span></div>
                                                          <div
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;
                                                          font-style:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          font-size:
                                                          15px;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;"><font
                                                          class=""
                                                          face="Arial">Eric
                                                          Germann</font></div>
                                                          <div
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;
                                                          font-style:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;"><span
                                                          style="font-size:
                                                          11px;"
                                                          class=""><font
                                                          class=""
                                                          face="Arial">ekgermann
                                                          {at} semperen
                                                          {dot} com ||
                                                          ekgermann {at}
                                                          gmail {dot}
                                                          com</font></span></div>
                                                          <div
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;" class=""><span
style="font-size: 11px;" class=""><font class="" face="Arial"><font
                                                          style="font-style:
                                                          normal;
                                                          font-weight:
                                                          normal;"
                                                          class="">LinkedIn: </font><span
style="font-style: normal;" class=""><a
                                                          href="https://www.linkedin.com/in/ericgermann"
class="moz-txt-link-freetext" moz-do-not-send="true">https://www.linkedin.com/in/ericgermann</a></span></font></span></div>
                                                          <div
                                                          style="text-align:
                                                          start;
                                                          text-indent:
                                                          0px;" class=""><span
style="font-size: 11px;" class=""><font class="" face="Arial">Medium:<span
class="Apple-converted-space"> </span><a
                                                          href="https://ekgermann.medium.com"
class="moz-txt-link-freetext" moz-do-not-send="true">https://ekgermann.medium.com</a> </font></span></div>
                                                          <div
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;
                                                          font-style:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          font-size:
                                                          15px;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;" class=""><span
style="font-size: 12px;" class=""><font class="" face="Arial">Twitter:
                                                          @ekgermann</font></span></div>
                                                          <div
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;
                                                          font-style:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          font-size:
                                                          15px;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;" class=""><span
style="font-size: 11px;" class=""><font class="" face="Arial">Telegram
                                                          || Signal ||
                                                          Skype || Phone
                                                          +1 {dash} 419
                                                          {dash} 513
                                                          {dash} 0712</font></span></div>
                                                          <div
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;
                                                          font-family:
                                                          Helvetica;
                                                          font-style:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          font-size:
                                                          15px;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;" class=""><span
style="font-family: InputMono-Regular; font-size: 11px;" class=""><br
                                                          class="">
                                                          </span></div>
                                                          <div
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;" class=""><font
style="font-family: Helvetica; font-style: normal; font-weight: normal;
                                                          font-size:
                                                          15px;"
                                                          class=""
                                                          face="InputMono-Regular"><span
style="font-size: 12px;" class="">GPG Fingerprint:<span
                                                          class="Apple-converted-space"> </span></span></font><font
                                                          class=""
                                                          face="Arial"><span
style="font-style: normal; font-size: 11px;" class="">89ED 36B3 515A
                                                          211B
                                                          6390  60A9
                                                          E30D 9B9B 3EBF
                                                          F1A1</span></font></div>
                                                          <div
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;" class=""><br
                                                          class="">
                                                          </div>
                                                          <div
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;" class=""><font
                                                          class=""
                                                          face="InputMono-Regular"><span
style="font-style: normal; font-size: 11px;" class=""><br class="">
                                                          </span></font></div>
                                                        </div>
                                                        <font
                                                          style="caret-color:
                                                          rgb(0, 0, 0);
                                                          color: rgb(0,
                                                          0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          text-decoration:
                                                          none;
                                                          -webkit-text-stroke-width:
                                                          0px;" class=""
face="InputMono-Regular"><span style="font-style: normal; font-size:
                                                          11px;"
                                                          class=""><br
                                                          class="Apple-interchange-newline">
                                                          </span></font></div>
                                                      <font
                                                        style="caret-color:
                                                        rgb(0, 0, 0);
                                                        color: rgb(0, 0,
                                                        0);
                                                        font-variant-caps:
                                                        normal;
                                                        letter-spacing:
                                                        normal;
                                                        text-transform:
                                                        none;
                                                        white-space:
                                                        normal;
                                                        word-spacing:
                                                        0px;
                                                        text-decoration:
                                                        none;
                                                        -webkit-text-stroke-width:
                                                        0px;" class=""
                                                        face="InputMono-Regular"><span
style="font-style: normal; font-size: 11px;" class=""><br
                                                          class="Apple-interchange-newline">
                                                        </span></font></div>
                                                    <font
                                                      style="caret-color:
                                                      rgb(0, 0, 0);
                                                      color: rgb(0, 0,
                                                      0);
                                                      letter-spacing:
                                                      normal;
                                                      text-transform:
                                                      none; white-space:
                                                      normal;
                                                      word-spacing: 0px;
                                                      text-decoration:
                                                      none;
                                                      -webkit-text-stroke-width:
                                                      0px;" class=""
                                                      face="InputMono-Regular"><span
style="font-style: normal; font-size: 11px;" class=""><br
                                                          class="Apple-interchange-newline"
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);
                                                          font-variant-caps:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          -webkit-text-stroke-width:
                                                          0px;
                                                          text-decoration:
                                                          none;">
                                                      </span></font><br
class="Apple-interchange-newline">
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div style=""><br class="">
        <blockquote type="cite" class="">
          <div class="">On Sep 19, 2022, at 14:25, Brian Carey <<a
              href="mailto:biscotty666@gmail.com"
              class="moz-txt-link-freetext" moz-do-not-send="true">biscotty666@gmail.com</a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <div class="">
            <div class="">Hi,<br class="">
              <br class="">
              Maybe I'm misunderstanding how this should work. Can I use
              non-ssl connections for upstream servers when the
              originating request is https?<br class="">
              <br class="">
              I'm forwarding nginx requests to an apache server
              listening on 8080. Everything works fine if I explicitly
              use http but not https. My nginx site itself has no
              problem with https and all http traffic is forwarded to
              https. However when I try to go to wordpress (on apache) I
              get an error in my browser that I am forwarding plain http
              to https, and indeed the port I see in the browser is 443
              not 8080. Again if I explicitly request http I'm good but
              it fails with https. Why is nginx forwarding this traffic
              to 443 instead of 8080? Or probably better how do I change
              this behavior?<br class="">
              <br class="">
              So I'm trying to find out how nginx makes that decision.
              This is the stanza nginx conf file.<br class="">
              <br class="">
              server {<br class="">
                      listen 80 default_server;<br class="">
                      listen [::]:80;<br class="">
                      server_name <a href="http://biscotty.me" class=""
                moz-do-not-send="true">biscotty.me</a>;<br class="">
                      return 301 <a
                href="https://$hostname$request_uri"
                class="moz-txt-link-freetext" moz-do-not-send="true">https://$hostname$request_uri</a>;<br
                class="">
              }<br class="">
              <br class="">
              server{<br class="">
              <br class="">
               listen 443 ssl http2;<br class="">
                      listen [::]:443 ssl;<br class="">
                      server_name <a href="http://biscotty.me" class=""
                moz-do-not-send="true">biscotty.me</a>;<br class="">
              <br class="">
                      ssl_certificate        
              /etc/nginx/ssl/certificates.crt;<br class="">
                      ssl_certificate_key    
              /etc/nginx/ssl/private.key;<br class="">
              <br class="">
                      root /var/www/html;<br class="">
              <br class="">
                      index index.html index.htm
              index.nginx-debian.html;<br class="">
              <br class="">
                      server_name _;<br class="">
              <br class="">
                      location / {<br class="">
                              # First attempt to serve request as file,
              then<br class="">
                              # as directory, then fall back to
              displaying a 404.<br class="">
                              try_files $uri $uri/ =404;<br class="">
                      }<br class="">
              <br class="">
              location /wordpress {<br class="">
                              proxy_pass <a href="http://0.0.0.0:8080"
                class="moz-txt-link-freetext" moz-do-not-send="true">http://0.0.0.0:8080</a>;<br
                class="">
                              proxy_buffering on;<br class="">
                              proxy_buffers 12 12k;<br class="">
                              proxy_redirect off;<br class="">
              <br class="">
                              proxy_set_header X-Real-IP $remote_addr;<br
                class="">
                              proxy_set_header X-Forwarded-For
              $remote_addr;<br class="">
                              proxy_set_header Host $host:8080;<br
                class="">
                      }<br class="">
              <br class="">
              }<br class="">
              <br class="">
              _______________________________________________<br
                class="">
              nginx mailing list -- <a href="mailto:nginx@nginx.org"
                class="moz-txt-link-freetext" moz-do-not-send="true">nginx@nginx.org</a><br
                class="">
              To unsubscribe send an email to <a
                href="mailto:nginx-leave@nginx.org"
                class="moz-txt-link-freetext" moz-do-not-send="true">nginx-leave@nginx.org</a><br
                class="">
            </div>
          </div>
        </blockquote>
      </div>
      <br class="">
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
nginx mailing list -- <a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
To unsubscribe send an email to <a class="moz-txt-link-abbreviated" href="mailto:nginx-leave@nginx.org">nginx-leave@nginx.org</a>
</pre>
    </blockquote>
  </body>
</html>