Francis Daly
May 13, 2019 06:38PM
On Fri, May 10, 2019 at 12:31:43PM -0400, cox123456a wrote:

Hi there,

> Thanks for the detailed explanation. I agree with your diagnostic.

> I really need a way to bring 80 to 8000 and make it work.

Another way to approach this could be to change your code. It would make
it more efficient (avoiding one http redirect each time); but the real
reason to do it is to work around the particular nginx issue.

That is, where you currently have

===
class NavButton extends Component {
handleModuleNav = action => {
let to = "/" + action;
window.location = to;
};

render = () => {
return (
<div onClick={() => this.handleModuleNav("admin")}>
GO TO ADMIN
</div>
)
}
}
===

the intention is to make a request for "/admin". You could change that
so that it make a request for "/admin/"; either by changing one line to be

let to = "/" + action + "/";

or by changing another to be

<div onClick={() => this.handleModuleNav("admin/")}>

Either of those changes would avoid nginx having to tell the client
to switch from /admin to /admin/. It would not fix the general case,
but that might not matter for your specific case.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Web site not working on port redirection

cox123456a May 10, 2019 07:57AM

Re: Web site not working on port redirection

Francis Daly May 10, 2019 09:56AM

Re: Web site not working on port redirection

cox123456a May 10, 2019 12:31PM

Re: Web site not working on port redirection

cox123456a May 10, 2019 06:49PM

Re: Web site not working on port redirection

Francis Daly May 10, 2019 06:54PM

Re: Web site not working on port redirection

Francis Daly May 13, 2019 06:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready