<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Okay I seem to have solved this. I re-wrote the app urls to mount
      all directories under /striker, something unnecessary for the app
      itself but necessary for nginx to properly forward. I also removed
      the rewrite rule below.<br>
    </p>
    <p>Thanks by the way for the help you give here.</p>
    <p>Brian<br>
    </p>
    <div class="moz-cite-prefix">On 10/30/22 11:20, Brian Carey wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:78a8bd73-d6e3-e890-d9b1-6df427991b9b@gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hi,</p>
      <p>I have an app running at port 8239 on biscotty.me. If I access
        the app directly everything works as expected.</p>
      <p>I am able to use proxy_pass to forward <a
          class="moz-txt-link-freetext"
          href="https:/biscotty.me/striker" moz-do-not-send="true">https:/biscotty.me/striker</a>
        to the main page of my app. The problem is that all of the links
        in the app result in a page not found error from the apache
        server handling requests to /. So it seems like the port number
        information is somehow being lost in translation?</p>
      <p>This is my conf:</p>
      <p>```</p>
      <p><span style="font-family:monospace"><span
            style="color:#000000;background-color:#ffffff;">       
            location /striker { </span><br>
                         rewrite /striker/(.*) /$1 break; <br>
                         proxy_pass <a class="moz-txt-link-freetext"
            href="http://192.168.0.238:8239" moz-do-not-send="true">http://192.168.0.238:8239</a>;
          <br>
        </span></p>
      <p><span style="font-family:monospace">              
          proxy_set_header X-Real-IP $remote_addr; <br>
                         proxy_set_header X-Forwarded-For $remote_addr;
          <br>
                         proxy_set_header Host $host:8239; <br>
           <br>
                 } <br>
          <br>
                 location / { <br>
                         proxy_pass <a class="moz-txt-link-freetext"
            href="http://192.168.0.238:8080/" moz-do-not-send="true">http://192.168.0.238:8080/</a>;
          <br>
                         proxy_buffering on; <br>
                         proxy_buffers 12 12k; <br>
                         proxy_redirect off; <br>
          <br>
                         proxy_set_header X-Real-IP $remote_addr; <br>
                         proxy_set_header X-Forwarded-For $remote_addr;
          <br>
                         proxy_set_header Host $host:8080; <br>
           <br>
                 } </span></p>
      <p><span style="font-family:monospace">```<br>
          <br>
          <br>
        </span></p>
      <p>```</p>
      <p><br>
      </p>
    </blockquote>
  </body>
</html>