<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<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">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">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/">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>
</body>
</html>