How do I do that (sorry if that’s a dumb question)
Comment on nginx https only works when not on local network
Taleya@aussie.zone 9 months ago
Internally the domain is resolving to your public IP. Check your modem isn’t trying to redirect the http request to itself
Blisterexe@lemmy.zip 9 months ago
Blisterexe@lemmy.zip 9 months ago
the 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.