in reply to Re^2: upstream prematurely closed connection while reading response header from upstream
in thread upstream prematurely closed connection while reading response header from upstream
Now I started migrating stuff from my old webhoster to the new server
This is why things changed, and why you have to edit your scripts.
If you are interested, you could use this to migrate to (say) Mojolicious, which allows you to locally test your scripts and move some of your HTML generation into templates etc., but as a first step, instead of passing $cgi into print_navi(), you could create it within print_navi() if you don't need it elsewhere, especially if you're only using it for HTML generation.
You also want to move the binmode STDOUT, ":utf8"; into your first call, likely create_cgi() so it gets called every time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: upstream prematurely closed connection while reading response header from upstream
by Digioso (Sexton) on Feb 24, 2023 at 15:17 UTC |