Comment on nginx https only works when not on local network
Blisterexe@lemmy.zip 9 months agothe domain is (correctly, i think) resolving to my home ip, check the edit
Comment on nginx https only works when not on local network
Blisterexe@lemmy.zip 9 months agothe domain is (correctly, i think) resolving to my home ip, check the edit
Taleya@aussie.zone 9 months ago
yup.
I had a similar driving me fcking nuts issue - it turned out that even though I had explicitly set the modem to run on a nonstandard port, to reject all http/https requests from the external interface and set it to point all http/https to my web server, every time I ran traffic internally from 192.168.0.1 to mydomain.com it went out, hit the the DNS, came back to my public IP and then for some reason I still cannot work the fuck out the modem then takes it and goes “oh that’s someone in my network talking to MEEEEEEEEEEE” and then I’d get a https bad request. Using a VPN negates this as it routes differently.
Blisterexe@lemmy.zip 9 months ago
did you find a way to fix it? (i am at my wits end)
Taleya@aussie.zone 9 months ago
internally? On my main rig I just edited my host file to hard direct all traffic for that domain to the box’s internal IP. Not sure if that will work for you. Externally, well…there’s no issue.
Blisterexe@lemmy.zip 9 months ago
What exactly did you put in your host file that fixed the issue?
Blisterexe@lemmy.zip 9 months ago
I was actually hoping I could fix it for everyone on the network, but fair enough